diff --git a/tests/cli.test.ts b/tests/cli.test.ts index e8f9808..d32437c 100644 --- a/tests/cli.test.ts +++ b/tests/cli.test.ts @@ -168,7 +168,7 @@ describe('query-metadata', () => { function cli(args: string[], cwd: string): Promise { return new Promise(resolve => { - exec("ls ./dist", { cwd }, (error, stdout, stderr) => { + exec("cat ./dist/cli.js && node -v", { cwd }, (error, stdout, stderr) => { console.log(stdout); }); exec(`node ${path.resolve('./dist/cli.js')} ${args.join(' ')}`,