-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, this replaces the previous tmp.test.js
- Loading branch information
Showing
2 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { describe, it } from 'node:test'; | ||
import * as assert from "node:assert"; | ||
import { exec } from "node:child_process" | ||
|
||
describe('@aedart/cli', () => { | ||
|
||
describe('bin', () => { | ||
|
||
describe('npx', () => { | ||
|
||
it('can invoke cli application via npx', async () => { | ||
return exec('npx ion', (error, stdout, stderr) => { | ||
// console.log('stdout', stdout); | ||
// console.error('stderr', stderr); | ||
// console.log('code', error.code); | ||
|
||
assert.ok(error === null, `Error encountered from Cli Application: ${error?.message}`); | ||
assert.ok(stdout.length !== 0, 'Cli application failed to output default "help"'); | ||
}).on('exit', (code) => { | ||
const expected = 0; | ||
assert.equal(code, expected, `Expected exist code ${expected}, but received: ${code} from cli application`); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.