Skip to content

Commit 366db08

Browse files
committed
test(linter/plugins): rename test
1 parent 547b20e commit 366db08

File tree

9 files changed

+8
-8
lines changed

9 files changed

+8
-8
lines changed

apps/oxlint/test/__snapshots__/e2e.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ Found 0 warnings and 42 errors.
896896
Finished in Xms on 2 files using X threads."
897897
`;
898898
899-
exports[`oxlint CLI > should support \`defineRule\` + \`definePlugin\` 1`] = `
899+
exports[`oxlint CLI > should support \`defineRule\` 1`] = `
900900
"
901901
x define-rule-plugin(create): create body:
902902
| this === rule: true

apps/oxlint/test/__snapshots__/eslint-compat.test.ts.snap

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

3-
exports[`ESLint compatibility > \`defineRule\` + \`definePlugin\` should work 1`] = `
3+
exports[`ESLint compatibility > \`defineRule\` should work 1`] = `
44
"
5-
<root>/apps/oxlint/test/fixtures/define/files/1.js
5+
<root>/apps/oxlint/test/fixtures/defineRule/files/1.js
66
0:1 error create body:
77
this === rule: true define-rule-plugin/create
88
0:1 error before hook:
@@ -41,7 +41,7 @@ filename: files/1.js define-rule-plugin/c
4141
1:8 error ident visit fn "b":
4242
filename: files/1.js define-rule-plugin/create-once-no-hooks
4343
44-
<root>/apps/oxlint/test/fixtures/define/files/2.js
44+
<root>/apps/oxlint/test/fixtures/defineRule/files/2.js
4545
0:1 error create body:
4646
this === rule: true define-rule-plugin/create
4747
0:1 error before hook:

apps/oxlint/test/e2e.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ describe('oxlint CLI', () => {
154154
expect(normalizeOutput(stdout)).toMatchSnapshot();
155155
});
156156

157-
it('should support `defineRule` + `definePlugin`', async () => {
158-
const { stdout, exitCode } = await runOxlint('test/fixtures/define');
157+
it('should support `defineRule`', async () => {
158+
const { stdout, exitCode } = await runOxlint('test/fixtures/defineRule');
159159
expect(exitCode).toBe(1);
160160
expect(normalizeOutput(stdout)).toMatchSnapshot();
161161
});

apps/oxlint/test/eslint-compat.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ function normalizeOutput(output: string): string {
2424
}
2525

2626
describe('ESLint compatibility', () => {
27-
it('`defineRule` + `definePlugin` should work', async () => {
28-
const { stdout, exitCode } = await runEslint('test/fixtures/define');
27+
it('`defineRule` should work', async () => {
28+
const { stdout, exitCode } = await runEslint('test/fixtures/defineRule');
2929
expect(exitCode).toBe(1);
3030
expect(normalizeOutput(stdout)).toMatchSnapshot();
3131
});

0 commit comments

Comments
 (0)