We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ed1558 commit 95a38e5Copy full SHA for 95a38e5
tests/cli/tmp.test.js
@@ -1,5 +1,6 @@
1
import { describe, it } from 'node:test';
2
import * as assert from "node:assert";
3
+import { exec } from "node:child_process"
4
5
/**
6
* TODO: Testing nodejs - dummy file to be removed again!
@@ -10,4 +11,13 @@ describe('TODO', () => {
10
11
assert.ok(true);
12
});
13
14
+ it('can invoke cli application via npx', async () => {
15
+ return exec('npx ion', (error, stdout,stderr) => {
16
+ // console.log('stdout', stdout);
17
+ // console.error('stderr', stderr);
18
+ // console.log('code', error.code);
19
+
20
+ assert.equal(error.code, 1, `Incorrect exit code: (${error.code})`);
21
+ });
22
23
0 commit comments