Skip to content
Merged
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
7 changes: 5 additions & 2 deletions apps/oxlint/test/eslint-compat.test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { join as pathJoin } from 'node:path';
import { describe, it } from 'vitest';
import { testFixtureWithCommand } from './utils.js';

const ESLINT_PATH = pathJoin(import.meta.dirname, '../node_modules/.bin/eslint');

/**
* Run ESLint on a test fixture.
* @param fixtureName - Name of the fixture directory within `test/fixtures`
*/
async function testFixture(fixtureName: string): Promise<void> {
await testFixtureWithCommand({
command: 'pnpx',
args: ['eslint'],
command: ESLINT_PATH,
args: [],
fixtureName,
snapshotName: 'eslint',
});
Expand Down
Loading