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.
1 parent c13ada6 commit f921bbbCopy full SHA for f921bbb
apps/oxlint/test/e2e.test.ts
@@ -1,15 +1,15 @@
1
-import path from 'node:path';
+import { dirname, join as pathJoin } from 'node:path';
2
3
import { describe, expect, it } from 'vitest';
4
5
import { execa } from 'execa';
6
7
-const PACKAGE_ROOT_PATH = path.dirname(import.meta.dirname);
8
-const CLI_PATH = path.join(PACKAGE_ROOT_PATH, 'dist/cli.js');
+const PACKAGE_ROOT_PATH = dirname(import.meta.dirname);
+const CLI_PATH = pathJoin(PACKAGE_ROOT_PATH, 'dist/cli.js');
9
10
async function runOxlintWithoutPlugins(cwd: string, args: string[] = []) {
11
return await execa('node', [CLI_PATH, ...args], {
12
- cwd: path.join(PACKAGE_ROOT_PATH, cwd),
+ cwd: pathJoin(PACKAGE_ROOT_PATH, cwd),
13
reject: false,
14
});
15
}
0 commit comments