Skip to content

Commit

Permalink
Added check for failed test suites, fixes #28 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
boljen authored and alansouzati committed Dec 22, 2016
1 parent a146886 commit f1a67e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default (options = {}) => {
});

jest.runCLI(options, options.config.rootDir, (result) => {
if(result.numFailedTests) {
if(result.numFailedTests || result.numFailedTestSuites) {
cb(new gutil.PluginError('gulp-jest', { message: 'Tests Failed' }));
} else {
cb();
Expand Down

0 comments on commit f1a67e0

Please sign in to comment.