Skip to content

Commit

Permalink
fix: 修复 ci 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
silentcloud committed Dec 25, 2017
1 parent 39abb01 commit bd9ac33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -23,4 +23,5 @@ _site
dist
coverage
*.log
lib
lib
yarn.lock
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "atool-test-mocha",
"version": "0.1.7",
"version": "0.1.8",
"description": "Unit testing tool based on mocha & sinon & chai, run tests with jsdom",
"keywords": [
"testing",
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Expand Up @@ -42,6 +42,10 @@ export default function(config) {
stdio: 'inherit',
});

cp.on('close', (code) => {
process.exit(code);
});

cp.on('exit', () => {
if (config.coverage) {
console.log();
Expand Down

0 comments on commit bd9ac33

Please sign in to comment.