We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b65ff10 commit 35732c9Copy full SHA for 35732c9
packages/e2e-tests/test/test-shell.ts
@@ -156,8 +156,10 @@ export class TestShell {
156
}
157
158
static async killAll(): Promise<void> {
159
+ // Using splice to mutate the array of open shells in-place
160
+ const openShells = TestShell._openShells.splice(0);
161
await Promise.all(
- TestShell._openShells.map((shell) => {
162
+ openShells.map((shell) => {
163
shell.kill();
164
return shell.waitForExit();
165
})
0 commit comments