Skip to content

Commit 451e282

Browse files
myakuraCopilot
andcommitted
Use import.meta.dirname in CLI tests
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8f32a73 commit 451e282

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/cgmd/cli.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { spawnSync } from 'node:child_process';
22
import { describe, it } from 'node:test';
3-
import { dirname, join } from 'node:path';
4-
import { fileURLToPath } from 'node:url';
3+
import { join } from 'node:path';
54

6-
const __dirname = dirname(fileURLToPath(import.meta.url));
5+
const __dirname = import.meta.dirname;
76
const CLI = join(__dirname, '../../bin/cgmd.js');
87

98
function runCLI(args) {

0 commit comments

Comments
 (0)