diff --git a/packages/cactus-test-cmd-api-server/src/test/typescript/integration/runtime-plugin-imports.test.ts b/packages/cactus-test-cmd-api-server/src/test/typescript/integration/runtime-plugin-imports.test.ts index b1cfdb5113..2667136d20 100644 --- a/packages/cactus-test-cmd-api-server/src/test/typescript/integration/runtime-plugin-imports.test.ts +++ b/packages/cactus-test-cmd-api-server/src/test/typescript/integration/runtime-plugin-imports.test.ts @@ -18,8 +18,8 @@ const testCase = "can import plugins at runtime (CLI)"; describe(testCase, () => { let apiServer: ApiServer; - beforeAll(() => { - jest.resetModules(); + afterEach(() => { + jest.useRealTimers(); }); test(testCase, async () => { @@ -75,18 +75,5 @@ describe(testCase, () => { }); afterAll(async () => { await apiServer.shutdown(); - // nodeCleanup(test, (exitCode: unknown) => { - // if (exitCode == 0) { - // console.log("gets into the first if statement"); - // afterAll(async () => { - // await apiServer.shutdown(); - // }); - // } else { - // console.log("gets into the second if statement"); - // afterAll(async () => { - // await apiServer.shutdown(); - // }); - // } - // }); }); });