Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
do not try to end stdout stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent RENARD authored and Laurent RENARD committed Nov 22, 2019
1 parent e78bbc0 commit 3bdb0e2
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 21 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install
npm test
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install
npm test
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ We recommend to use [c8](https://www.npmjs.com/package/c8):

## Watch mode

We recommend to use [onchange](https://github.com/Qard/onchange)
We recommend to use [chokidar-cli](http://github.com/kimmobrunfeldt/chokidar-cli) or [onchange](https://github.com/Qard/onchange)

``chokidar '{test,src}/*.js' -c 'pta [...args]'``

or

``onchange '**/*.js' -- pta [...args]``
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"esm": "^3.2.25",
"fast-glob": "^3.1.0",
"kleur": "^3.0.3",
"zora": "^3.1.4"
"zora": "^3.1.6"
},
"devDependencies": {
"c8": "^6.0.1"
Expand Down
2 changes: 1 addition & 1 deletion src/reporters/default_reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const printFooter = (tests, out) => {
out.writeLine(paint.summarySkip(skipped), 1);
out.writeLine(paint.summaryFail(failure), 1);

out.end(`${EOL}`);
out.write(`${EOL}`);
};

const isAssertionResult = result => 'operator' in result;
Expand Down

0 comments on commit 3bdb0e2

Please sign in to comment.