Skip to content

Commit

Permalink
v7.4.0 — Set passWithNoTests argument to true for all Jest test r…
Browse files Browse the repository at this point in the history
…uns. (#107)
  • Loading branch information
DamianMullins authored and ashleynolan committed Jan 30, 2018
1 parent 2ad7b83 commit 07b4a61
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.0
------------------------------
*January 30, 2018*

### Changed
- Set `passWithNoTests` argument to `true` for all Jest test runs to prevent error when there are no tests in the project.


v7.3.0
------------------------------
*January 30, 2018*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@justeat/gulp-build-fozzie",
"version": "7.3.0",
"version": "7.4.0",
"description": "Gulp build tasks for use across Fozzie modules",
"main": "index.js",
"author": "Damian Mullins <[email protected]> (http://www.damianmullins.com)",
Expand Down
8 changes: 4 additions & 4 deletions tasks/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ gulp.task('scripts:lint', () => gulp.src([`${pathBuilder.jsSrcDir}/**/*.js`, ...
);


const jestTestRun = (args = {}) => jest.runCLI(
Object.assign({ bail: config.isProduction }, args),
[path.resolve(process.cwd())]
);
const jestTestRun = (args = {
bail: config.isProduction,
passWithNoTests: true
}) => jest.runCLI(args, [path.resolve(process.cwd())]);

/**
* `scripts:test` Task
Expand Down

0 comments on commit 07b4a61

Please sign in to comment.