2021-05-21 15:17:21 +02:00
|
|
|
const { afterEachCleanUp } = require('./testing/test-utils.js');
|
|
|
|
const { shimInit } = require('./shim-init-node.js');
|
|
|
|
const sharp = require('sharp');
|
2021-10-01 20:35:27 +02:00
|
|
|
const nodeSqlite = require('sqlite3');
|
2023-12-13 21:24:58 +02:00
|
|
|
const pdfJs = require('pdfjs-dist');
|
2024-01-26 12:32:35 +02:00
|
|
|
const packageInfo = require('./package.json');
|
2021-05-21 15:17:21 +02:00
|
|
|
|
2023-12-15 20:34:21 +02:00
|
|
|
require('../../jest.base-setup.js')();
|
|
|
|
|
2024-01-26 12:32:35 +02:00
|
|
|
shimInit({ sharp, nodeSqlite, pdfJs, appVersion: () => packageInfo.version });
|
2021-05-21 15:17:21 +02:00
|
|
|
|
|
|
|
global.afterEach(async () => {
|
|
|
|
await afterEachCleanUp();
|
|
|
|
});
|