We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pnpm
1 parent 0029b7f commit 5d2a956Copy full SHA for 5d2a956
apps/oxlint/test/eslint-compat.test.ts
@@ -1,14 +1,17 @@
1
+import { join as pathJoin } from 'node:path';
2
import { describe, it } from 'vitest';
3
import { testFixtureWithCommand } from './utils.js';
4
5
+const ESLINT_PATH = pathJoin(import.meta.dirname, '../node_modules/.bin/eslint');
6
+
7
/**
8
* Run ESLint on a test fixture.
9
* @param fixtureName - Name of the fixture directory within `test/fixtures`
10
*/
11
async function testFixture(fixtureName: string): Promise<void> {
12
await testFixtureWithCommand({
- command: 'pnpx',
- args: ['eslint'],
13
+ command: ESLINT_PATH,
14
+ args: [],
15
fixtureName,
16
snapshotName: 'eslint',
17
});
0 commit comments