Skip to content

Commit dad6c95

Browse files
committed
Add assertNoOpenShells to e2e-editor
1 parent 0601808 commit dad6c95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/e2e-tests/test/e2e-editor.spec.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { expect } from 'chai';
22
import path from 'path';
33
import { promises as fs } from 'fs';
44
import { eventually } from '../../../testing/eventually';
5-
import type { TestShell } from './test-shell';
5+
import { TestShell } from './test-shell';
6+
import { ensureTestShellAfterHook } from './test-shell-context';
67
import {
78
useTmpdir,
89
fakeExternalEditor,
@@ -41,7 +42,10 @@ describe('external editor e2e', function () {
4142
);
4243
});
4344

45+
ensureTestShellAfterHook('afterEach', this);
46+
4447
afterEach(async function () {
48+
TestShell.assertNoOpenShells();
4549
try {
4650
await fs.rm(homedir, { recursive: true, force: true });
4751
} catch (err: any) {

0 commit comments

Comments
 (0)