Skip to content

Commit 49f7a48

Browse files
authored
Merge pull request #55 from pxgrid/use-import-meta-dirname
Use import.meta.dirname in CLI tests
2 parents 8f32a73 + 451e282 commit 49f7a48

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)