mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
test(api): setup mongo schema before running tests (#51686)
Co-authored-by: Muhammed Mustafa <MuhammedElruby@gmail.com>
This commit is contained in:
committed by
GitHub
parent
25ff25e74f
commit
5c8b94f236
+2
-1
@@ -64,7 +64,8 @@ export function setupServer(): void {
|
||||
await fastify.ready();
|
||||
|
||||
global.fastifyTestInstance = fastify;
|
||||
});
|
||||
// allow a little time to setup the db
|
||||
}, 10000);
|
||||
|
||||
afterAll(async () => {
|
||||
// Due to a prisma bug, this is not enough, we need to --force-exit jest:
|
||||
|
||||
Reference in New Issue
Block a user