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
8 changes: 4 additions & 4 deletions apps/oxlint/test/e2e.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import path from 'node:path';
import { dirname, join as pathJoin } from 'node:path';

import { describe, expect, it } from 'vitest';

import { execa } from 'execa';

const PACKAGE_ROOT_PATH = path.dirname(import.meta.dirname);
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');

async function runOxlintWithoutPlugins(cwd: string, args: string[] = []) {
return await execa('node', [CLI_PATH, ...args], {
cwd: path.join(PACKAGE_ROOT_PATH, cwd),
cwd: pathJoin(PACKAGE_ROOT_PATH, cwd),
reject: false,
});
}
Expand Down
Loading