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';
44import { MongoClient } from 'mongodb' ;
55
66import { eventually } from '../../../testing/eventually' ;
7- import type { TestShell } from './test-shell' ;
7+ import { ensureTestShellAfterHook , TestShell } from './test-shell' ;
88import {
99 skipIfServerVersion ,
1010 startSharedTestServer ,
@@ -1378,7 +1378,11 @@ describe('e2e', function () {
13781378 } ;
13791379 } ) ;
13801380
1381+ // Ensure the afterEach below runs after shells are killed
1382+ ensureTestShellAfterHook ( 'afterEach' , this ) ;
1383+
13811384 afterEach ( async function ( ) {
1385+ TestShell . assertNoOpenShells ( ) ;
13821386 try {
13831387 await fs . rm ( homedir , { recursive : true , force : true } ) ;
13841388 } catch ( err : any ) {
You can’t perform that action at this time.
0 commit comments