Skip to content

Commit

Permalink
vuwa-
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Sep 22, 2024
1 parent 90b8b4c commit 0c3bd12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/backend/jest.config.e2e.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
};
2 changes: 2 additions & 0 deletions packages/backend/test/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]);
});

0 comments on commit 0c3bd12

Please sign in to comment.