Skip to content

Commit 92d9d6d

Browse files
Jake ChampionJakeChampion
authored andcommitted
run cleanup during teardown
1 parent 81f942d commit 92d9d6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integration-tests/cli/help.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ const cli = await getBinPath()
66

77
test('--help should return help on stdout and zero exit code', async function (t) {
88
const { execute, cleanup } = await prepareEnvironment();
9-
const { code, stdout, stderr } = await execute('node',`${cli} --help`);
9+
t.teardown(async function () {
10+
await cleanup();
11+
});
1012

1113
t.is(code, 0);
1214
t.alike(stdout, [
@@ -23,8 +25,6 @@ test('--help should return help on stdout and zero exit code', async function (t
2325
'<output> The file path to write the output Wasm module to [default: bin/main.wasm]'
2426
])
2527
t.alike(stderr, [])
26-
27-
await cleanup();
2828
});
2929

3030
test('-h should return help on stdout and zero exit code', async function (t) {

0 commit comments

Comments
 (0)