diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f79340..80c306a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +v7.1.0 +------------------------------ +*January 18, 2018* + +### Changed +- Set `bail` argument to `true` for all Jest test runs so that it returns the correct exit code when a test run fails. + + v7.0.0 ------------------------------ *January 17, 2018* diff --git a/package.json b/package.json index 170d3f9..d9cf26d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@justeat/gulp-build-fozzie", - "version": "7.0.0", + "version": "7.1.0", "description": "Gulp build tasks for use across Fozzie modules", "main": "index.js", "author": "Damian Mullins (http://www.damianmullins.com)", diff --git a/tasks/javascript.js b/tasks/javascript.js index a6e7308..ca84792 100644 --- a/tasks/javascript.js +++ b/tasks/javascript.js @@ -63,7 +63,7 @@ gulp.task('scripts:lint', () => gulp.src([`${pathBuilder.jsSrcDir}/**/*.js`, ... const jestTestRun = (args = {}) => jest.runCLI( - args, + Object.assign({ bail: true }, args), [path.resolve(process.cwd())] );