diff --git a/packages/backend/jest.config.e2e.cjs b/packages/backend/jest.config.e2e.cjs index 4502da47df..385607d5e3 100644 --- a/packages/backend/jest.config.e2e.cjs +++ b/packages/backend/jest.config.e2e.cjs @@ -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: "/built-test/entry.js", - setupFilesAfterEnv: ["/test/jest.setup.ts"], + //globalSetup: "/built-test/entry.js", + setupFilesAfterEnv: ['/test/jest.setup.ts'], testMatch: [ - "/test/e2e/**/*.ts", + '/test/e2e/**/*.ts', ], }; diff --git a/packages/backend/test/jest.setup.ts b/packages/backend/test/jest.setup.ts index 861bc6db66..c8e120a51b 100644 --- a/packages/backend/test/jest.setup.ts +++ b/packages/backend/test/jest.setup.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(), ]); });