diff --git a/tools/tests/linter/lint.test.ts b/tools/tests/linter/lint.test.ts index 7c9a012f6..d2205d9f0 100644 --- a/tools/tests/linter/lint.test.ts +++ b/tools/tests/linter/lint.test.ts @@ -18,5 +18,7 @@ const spec = (args: string[]): any => { } test('--help', () => { - expect(spec(['--help']).stdout).toContain('Usage: lint [options]') + const output = spec(['--help']) + expect(output.stderr).toEqual('') + expect(output.stdout).toContain('Usage: lint [options]') })