Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add exit option back to fix buggy tests #163

Merged
merged 1 commit into from
Oct 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cmds/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ module.exports = {
describe: 'Do not include passed in files in the coverage report',
type: 'array',
default: []
},
exit: {
describe: 'force shutdown of the event loop after test run: mocha will call process.exit',
default: true
}
},
handler (argv) {
Expand Down
4 changes: 4 additions & 0 deletions cmds/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ module.exports = {
describe: 'Custom globs for files to test',
type: 'array',
default: []
},
exit: {
describe: 'force shutdown of the event loop after test run: mocha will call process.exit',
default: true
}
},
handler (argv) {
Expand Down
4 changes: 4 additions & 0 deletions cmds/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ module.exports = {
describe: 'The default time a single test has to run',
type: 'number',
default: 5000
},
exit: {
describe: 'force shutdown of the event loop after test run: mocha will call process.exit',
default: true
}
},
handler (argv) {
Expand Down
4 changes: 4 additions & 0 deletions src/test/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ function testNode (ctx) {
args.push('--watch')
}

if (ctx.exit) {
args.push('--exit')
}

if (ctx.coverage) {
exec = 'nyc'
args = [
Expand Down