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