refactor(frontend): Start test-app voor individuele testfiles

This commit is contained in:
Tibo De Peuter 2025-04-21 12:44:39 +02:00
parent 196875538d
commit e59dead5a9
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 23 additions and 7 deletions

View file

@ -9,8 +9,13 @@ export default mergeConfig(
environment: "jsdom",
exclude: [...configDefaults.exclude, "e2e/**"],
root: fileURLToPath(new URL("./", import.meta.url)),
// Startup the backend server, because it is needed for some tests
globalSetup: ["./tests/setup-backend.ts"],
/*
* The test-backend server can be started for each test-file individually using `beforeAll(() => setup())`,
* or for all tests once using:
globalSetup: ["./tests/setup-backend.ts"],
* In this project, the backend server is started for each test-file individually.
*/
},
}),
);