From 0c3bd12472b4b9938cdff2d6f131e6800bc3724c Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sun, 22 Sep 2024 11:17:26 +0900 Subject: [PATCH] vuwa- --- packages/backend/jest.config.e2e.cjs | 8 ++++---- packages/backend/test/jest.setup.ts | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) 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(), ]); });