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
2 changes: 1 addition & 1 deletion apps/oxlint/test/__snapshots__/e2e.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ Found 0 warnings and 42 errors.
Finished in Xms on 2 files using X threads."
`;

exports[`oxlint CLI > should support \`defineRule\` + \`definePlugin\` 1`] = `
exports[`oxlint CLI > should support \`defineRule\` 1`] = `
"
x define-rule-plugin(create): create body:
| this === rule: true
Expand Down
6 changes: 3 additions & 3 deletions apps/oxlint/test/__snapshots__/eslint-compat.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`ESLint compatibility > \`defineRule\` + \`definePlugin\` should work 1`] = `
exports[`ESLint compatibility > \`defineRule\` should work 1`] = `
"
<root>/apps/oxlint/test/fixtures/define/files/1.js
<root>/apps/oxlint/test/fixtures/defineRule/files/1.js
0:1 error create body:
this === rule: true define-rule-plugin/create
0:1 error before hook:
Expand Down Expand Up @@ -41,7 +41,7 @@ filename: files/1.js define-rule-plugin/c
1:8 error ident visit fn "b":
filename: files/1.js define-rule-plugin/create-once-no-hooks

<root>/apps/oxlint/test/fixtures/define/files/2.js
<root>/apps/oxlint/test/fixtures/defineRule/files/2.js
0:1 error create body:
this === rule: true define-rule-plugin/create
0:1 error before hook:
Expand Down
4 changes: 2 additions & 2 deletions apps/oxlint/test/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ describe('oxlint CLI', () => {
expect(normalizeOutput(stdout)).toMatchSnapshot();
});

it('should support `defineRule` + `definePlugin`', async () => {
const { stdout, exitCode } = await runOxlint('test/fixtures/define');
it('should support `defineRule`', async () => {
const { stdout, exitCode } = await runOxlint('test/fixtures/defineRule');
expect(exitCode).toBe(1);
expect(normalizeOutput(stdout)).toMatchSnapshot();
});
Expand Down
4 changes: 2 additions & 2 deletions apps/oxlint/test/eslint-compat.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function normalizeOutput(output: string): string {
}

describe('ESLint compatibility', () => {
it('`defineRule` + `definePlugin` should work', async () => {
const { stdout, exitCode } = await runEslint('test/fixtures/define');
it('`defineRule` should work', async () => {
const { stdout, exitCode } = await runEslint('test/fixtures/defineRule');
expect(exitCode).toBe(1);
expect(normalizeOutput(stdout)).toMatchSnapshot();
});
Expand Down
Loading