Skip to content

Commit

Permalink
Assert it doesn't throw on index.js, but does still throw on `overr…
Browse files Browse the repository at this point in the history
…ides.js`
  • Loading branch information
melusc committed Jul 20, 2024
1 parent f6506fe commit 1c43569
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,7 @@ test('Disable n/no-unsupported-features/*', async t => {
'n/no-unsupported-features/node-builtins': ['error'],
},
});

await t.notThrowsAsync(() => main(['index.js'], {cwd}));
await t.throwsAsync(() => main(['overrides.js'], {cwd}));
});

0 comments on commit 1c43569

Please sign in to comment.