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

View File

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