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 49b9d62 commit 342f9faCopy full SHA for 342f9fa
integration-tests/cli/invalid.test.js
@@ -4,15 +4,13 @@ import { prepareEnvironment } from '@gmrchk/cli-testing-library';
4
5
const cli = await getBinPath()
6
7
-test('should bail on syntax errors', async function (t) {
+test('should return non-zero exit code on syntax errors', async function (t) {
8
const { execute, cleanup, writeFile } = await prepareEnvironment();
9
+ t.teardown(async function () {
10
+ await cleanup();
11
+ });
12
await writeFile('./bin/index.js', '@')
- const { code } = await execute(
- 'node',
- cli
13
- );
14
-
+ const { code } = await execute('node', cli);
+
15
t.is(code, 1);
16
17
- await cleanup();
18
});
0 commit comments