Skip to content

Commit 658abfe

Browse files
committed
fix(tests): update describe block to reflect correct CLI context
1 parent 6d2b549 commit 658abfe

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

napi/oxlint2/test/__snapshots__/e2e.test.ts.snap

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`cli options for bundling > should lint a directory with errors 1`] = `
3+
exports[`oxlint2 CLI > should lint a directory with errors 1`] = `
44
"
55
x ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-debugger.html\\eslint(no-debugger)]8;;\\: \`debugger\` statement is not allowed
66
,-[index.js:1:1]
@@ -13,12 +13,12 @@ Found 0 warnings and 1 error.
1313
Finished in Xms on 1 file using X threads."
1414
`;
1515

16-
exports[`cli options for bundling > should lint a directory without errors 1`] = `
16+
exports[`oxlint2 CLI > should lint a directory without errors 1`] = `
1717
"Found 0 warnings and 0 errors.
1818
Finished in Xms on 1 file using X threads."
1919
`;
2020

21-
exports[`cli options for bundling > should load a custom plugin 1`] = `
21+
exports[`oxlint2 CLI > should load a custom plugin 1`] = `
2222
"
2323
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-debugger.html\\eslint(no-debugger)]8;;\\: \`debugger\` statement is not allowed
2424
,-[index.js:1:1]
@@ -37,7 +37,7 @@ Found 1 warning and 1 error.
3737
Finished in Xms on 1 file using X threads."
3838
`;
3939

40-
exports[`cli options for bundling > should load a custom plugin when configured in overrides 1`] = `
40+
exports[`oxlint2 CLI > should load a custom plugin when configured in overrides 1`] = `
4141
"
4242
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-debugger.html\\eslint(no-debugger)]8;;\\: \`debugger\` statement is not allowed
4343
,-[index.js:1:1]
@@ -56,7 +56,7 @@ Found 1 warning and 1 error.
5656
Finished in Xms on 1 file using X threads."
5757
`;
5858

59-
exports[`cli options for bundling > should load a custom plugin with multiple files 1`] = `
59+
exports[`oxlint2 CLI > should load a custom plugin with multiple files 1`] = `
6060
"
6161
! ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-debugger.html\\eslint(no-debugger)]8;;\\: \`debugger\` statement is not allowed
6262
,-[files/01.js:1:1]
@@ -322,15 +322,15 @@ Found 20 warnings and 20 errors.
322322
Finished in Xms on 20 files using X threads."
323323
`;
324324

325-
exports[`cli options for bundling > should report an error if a custom plugin cannot be loaded 1`] = `
325+
exports[`oxlint2 CLI > should report an error if a custom plugin cannot be loaded 1`] = `
326326
"Failed to parse configuration file.
327327
328328
x Failed to load external plugin: ./test_plugin
329329
| Cannot find module './test_plugin'
330330
"
331331
`;
332332

333-
exports[`cli options for bundling > should report an error if a rule is not found within a custom plugin 1`] = `
333+
exports[`oxlint2 CLI > should report an error if a rule is not found within a custom plugin 1`] = `
334334
"Failed to parse configuration file.
335335
336336
x Rule 'unknown-rule' not found in plugin 'basic-custom-plugin'

napi/oxlint2/test/e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function normalizeOutput(output: string): string {
2020
.replace(/using \d+ threads./, 'using X threads.');
2121
}
2222

23-
describe('cli options for bundling', () => {
23+
describe('oxlint2 CLI', () => {
2424
it('should lint a directory without errors', async () => {
2525
const { stdout, exitCode } = await runOxlint(
2626
'test/fixtures/built_in_no_errors',

0 commit comments

Comments
 (0)