File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import type { Db } from 'mongodb';
4
4
import { MongoClient } from 'mongodb' ;
5
5
6
6
import { eventually } from '../../../testing/eventually' ;
7
- import type { TestShell } from './test-shell' ;
7
+ import { ensureTestShellAfterHook , TestShell } from './test-shell' ;
8
8
import {
9
9
skipIfServerVersion ,
10
10
startSharedTestServer ,
@@ -1378,7 +1378,11 @@ describe('e2e', function () {
1378
1378
} ;
1379
1379
} ) ;
1380
1380
1381
+ // Ensure the afterEach below runs after shells are killed
1382
+ ensureTestShellAfterHook ( 'afterEach' , this ) ;
1383
+
1381
1384
afterEach ( async function ( ) {
1385
+ TestShell . assertNoOpenShells ( ) ;
1382
1386
try {
1383
1387
await fs . rm ( homedir , { recursive : true , force : true } ) ;
1384
1388
} catch ( err : any ) {
You can’t perform that action at this time.
0 commit comments