Skip to content

Commit f431390

Browse files
committed
Add check for plans on output, fixes #8
1 parent a7bb7cf commit f431390

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/summarize.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ module.exports = function () {
4848
dup.failed = true
4949
}
5050

51+
if (res.plans.length < 1) {
52+
dup.failed = true
53+
process.exit(1)
54+
}
55+
5156
dup.emit('summary', {
5257
duration: duration,
5358
assertions: res.asserts.length,
@@ -78,4 +83,3 @@ function getTest(n, tests) {
7883
}
7984
return null
8085
}
81-

0 commit comments

Comments
 (0)