Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions napi/oxlint2/test/__snapshots__/e2e.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

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

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

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

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

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

exports[`cli options for bundling > should report an error if a custom plugin cannot be loaded 1`] = `
exports[`oxlint2 CLI > should report an error if a custom plugin cannot be loaded 1`] = `
"Failed to parse configuration file.

x Failed to load external plugin: ./test_plugin
| Cannot find module './test_plugin'
"
`;

exports[`cli options for bundling > should report an error if a rule is not found within a custom plugin 1`] = `
exports[`oxlint2 CLI > should report an error if a rule is not found within a custom plugin 1`] = `
"Failed to parse configuration file.

x Rule 'unknown-rule' not found in plugin 'basic-custom-plugin'
Expand Down
2 changes: 1 addition & 1 deletion napi/oxlint2/test/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function normalizeOutput(output: string): string {
.replace(/using \d+ threads./, 'using X threads.');
}

describe('cli options for bundling', () => {
describe('oxlint2 CLI', () => {
it('should lint a directory without errors', async () => {
const { stdout, exitCode } = await runOxlint(
'test/fixtures/built_in_no_errors',
Expand Down
Loading