We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ce0d1c commit 13110ccCopy full SHA for 13110cc
1 file changed
test/cli.test.mjs
@@ -1,13 +1,11 @@
1
import { strict as assert } from 'node:assert';
2
import { spawnSync } from 'node:child_process';
3
-import path from 'node:path';
4
import process from 'node:process';
5
import { fileURLToPath } from 'node:url';
6
7
-const testDir = path.dirname(fileURLToPath(import.meta.url));
8
-const cliPath = path.resolve(testDir, '..', 'bin', 'cli.js');
+const cliPath = fileURLToPath(new URL('../bin/cli.js', import.meta.url));
9
10
-describe('dependency-tree CLI', () => {
+describe('cli', () => {
11
it('prints usage and exits when filename is missing', () => {
12
const result = spawnSync(process.execPath, [cliPath], {
13
encoding: 'utf8'
0 commit comments