vuwa-
This commit is contained in:
parent
90b8b4c487
commit
0c3bd12472
|
@ -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',
|
||||
],
|
||||
};
|
||||
|
|
|
@ -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(),
|
||||
]);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue