We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5daa3e commit d09d258Copy full SHA for d09d258
tests/test.js
@@ -63,6 +63,13 @@ function exit() {
63
}
64
})
65
66
- ignored && console.error('⚠️', ignored, 'ignored test' + (ignored === 1 ? '' : 's', '\n'))
67
- console.log(!only && success && !ignored ? 'All good' : 'Not good')
+ only
+ ? console.error('⚠️', 'Not all tests were run')
68
+ : ignored
69
+ ? console.error('⚠️', ignored, 'ignored test' + (ignored === 1 ? '' : 's', '\n'))
70
+ : success
71
+ ? console.log('All good')
72
+ : console.error('⚠️', 'Not good')
73
+
74
+ !process.exitCode && (!success || only || ignored) && (process.exitCode = 1)
75
0 commit comments