Skip to content

Commit

Permalink
test: fix win
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 committed Aug 30, 2022
1 parent 601e10f commit 6ad78ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"scripts": {
"lint": "eslint .",
"test": "vitest",
"cov": "vitest run --coverage",
"cov": "vitest run operation --allowOnly --coverage",
"ci": "npm run lint && npm run cov"
},
"ci": {
Expand Down
3 changes: 2 additions & 1 deletion test/operation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ describe('test/operation.test.js', () => {
.notStderr('bad option: --no-collect');
}, 10000);

it('should support log()', async () => {
it.only('should support log()', async () => {
await runner()
.spawn('npm -v')
.log('stdout: %s, code: %d', 'result.stdout', 'result.code')
.log('result');

console.warn('@@@ "%s"...', console.info.calls.join('\n'));
expect(console.info).toHaveBeenCalledWith(expect.stringMatching(/\[CLET\] stdout: \d+\.\d+\.\d+, code: 0/));
expect(console.info).toHaveBeenCalledWith(expect.stringMatching(/\[CLET\] \{ stdout:.*/));
});
Expand Down

0 comments on commit 6ad78ec

Please sign in to comment.