We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37b6a3f commit eb249e2Copy full SHA for eb249e2
packages/e2e-tests/test/e2e.spec.ts
@@ -4,7 +4,7 @@ import type { Db } from 'mongodb';
4
import { MongoClient } from 'mongodb';
5
6
import { eventually } from '../../../testing/eventually';
7
-import type { TestShell } from './test-shell';
+import { ensureTestShellAfterHook, TestShell } from './test-shell';
8
import {
9
skipIfServerVersion,
10
startSharedTestServer,
@@ -1378,7 +1378,11 @@ describe('e2e', function () {
1378
};
1379
});
1380
1381
+ // Ensure the afterEach below runs after shells are killed
1382
+ ensureTestShellAfterHook('afterEach', this);
1383
+
1384
afterEach(async function () {
1385
+ TestShell.assertNoOpenShells();
1386
try {
1387
await fs.rm(homedir, { recursive: true, force: true });
1388
} catch (err: any) {
0 commit comments