This commit is contained in:
syuilo 2024-09-22 11:17:26 +09:00
parent 90b8b4c487
commit 0c3bd12472
2 changed files with 6 additions and 4 deletions

View File

@ -3,13 +3,13 @@
* https://jestjs.io/docs/en/configuration.html
*/
const base = require('./jest.config.cjs')
const base = require('./jest.config.cjs');
module.exports = {
...base,
globalSetup: "<rootDir>/built-test/entry.js",
setupFilesAfterEnv: ["<rootDir>/test/jest.setup.ts"],
//globalSetup: "<rootDir>/built-test/entry.js",
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.ts'],
testMatch: [
"<rootDir>/test/e2e/**/*.ts",
'<rootDir>/test/e2e/**/*.ts',
],
};

View File

@ -4,10 +4,12 @@
*/
import { initTestDb, sendEnvResetRequest } from './utils.js';
import launch from '../built-test/entry.js';
beforeAll(async () => {
await Promise.all([
initTestDb(false),
launch(),
sendEnvResetRequest(),
]);
});