Skip to content

Commit 5d2a956

Browse files
committed
test(linter/plugins): do not run pnpm in tests
1 parent 0029b7f commit 5d2a956

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
import { join as pathJoin } from 'node:path';
12
import { describe, it } from 'vitest';
23
import { testFixtureWithCommand } from './utils.js';
34

5+
const ESLINT_PATH = pathJoin(import.meta.dirname, '../node_modules/.bin/eslint');
6+
47
/**
58
* Run ESLint on a test fixture.
69
* @param fixtureName - Name of the fixture directory within `test/fixtures`
710
*/
811
async function testFixture(fixtureName: string): Promise<void> {
912
await testFixtureWithCommand({
10-
command: 'pnpx',
11-
args: ['eslint'],
13+
command: ESLINT_PATH,
14+
args: [],
1215
fixtureName,
1316
snapshotName: 'eslint',
1417
});

0 commit comments

Comments
 (0)