diff --git a/apps/oxlint/test/__snapshots__/e2e.test.ts.snap b/apps/oxlint/test/__snapshots__/e2e.test.ts.snap index 4f902883d73d6..2f2508fed2b26 100644 --- a/apps/oxlint/test/__snapshots__/e2e.test.ts.snap +++ b/apps/oxlint/test/__snapshots__/e2e.test.ts.snap @@ -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 diff --git a/apps/oxlint/test/__snapshots__/eslint-compat.test.ts.snap b/apps/oxlint/test/__snapshots__/eslint-compat.test.ts.snap index 791888be8c0b2..25f8049d709d5 100644 --- a/apps/oxlint/test/__snapshots__/eslint-compat.test.ts.snap +++ b/apps/oxlint/test/__snapshots__/eslint-compat.test.ts.snap @@ -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`] = ` " -/apps/oxlint/test/fixtures/define/files/1.js +/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: @@ -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 -/apps/oxlint/test/fixtures/define/files/2.js +/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: diff --git a/apps/oxlint/test/e2e.test.ts b/apps/oxlint/test/e2e.test.ts index 6e66c32bf55be..5903d124f7356 100644 --- a/apps/oxlint/test/e2e.test.ts +++ b/apps/oxlint/test/e2e.test.ts @@ -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(); }); diff --git a/apps/oxlint/test/eslint-compat.test.ts b/apps/oxlint/test/eslint-compat.test.ts index a80e02b8687c8..8101d30a0d84e 100644 --- a/apps/oxlint/test/eslint-compat.test.ts +++ b/apps/oxlint/test/eslint-compat.test.ts @@ -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(); }); diff --git a/apps/oxlint/test/fixtures/define/.oxlintrc.json b/apps/oxlint/test/fixtures/defineRule/.oxlintrc.json similarity index 100% rename from apps/oxlint/test/fixtures/define/.oxlintrc.json rename to apps/oxlint/test/fixtures/defineRule/.oxlintrc.json diff --git a/apps/oxlint/test/fixtures/define/eslint.config.js b/apps/oxlint/test/fixtures/defineRule/eslint.config.js similarity index 100% rename from apps/oxlint/test/fixtures/define/eslint.config.js rename to apps/oxlint/test/fixtures/defineRule/eslint.config.js diff --git a/apps/oxlint/test/fixtures/define/files/1.js b/apps/oxlint/test/fixtures/defineRule/files/1.js similarity index 100% rename from apps/oxlint/test/fixtures/define/files/1.js rename to apps/oxlint/test/fixtures/defineRule/files/1.js diff --git a/apps/oxlint/test/fixtures/define/files/2.js b/apps/oxlint/test/fixtures/defineRule/files/2.js similarity index 100% rename from apps/oxlint/test/fixtures/define/files/2.js rename to apps/oxlint/test/fixtures/defineRule/files/2.js diff --git a/apps/oxlint/test/fixtures/define/test_plugin/index.js b/apps/oxlint/test/fixtures/defineRule/test_plugin/index.js similarity index 100% rename from apps/oxlint/test/fixtures/define/test_plugin/index.js rename to apps/oxlint/test/fixtures/defineRule/test_plugin/index.js