Skip to content

Commit

Permalink
fix(configuration): Remove unnecessary options
Browse files Browse the repository at this point in the history
The roots and testPathDirs attributes of the configuration passed to Jest may both be left undefined.

This has the added advantage of continuing to work once testPathDirs has been deprecated in Jest 19.0.0.  See jestjs/jest#2776
  • Loading branch information
mshogren authored and nicojs committed Jul 8, 2018
1 parent e8cc435 commit fc2799d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/stryker-jest-runner/src/JestTestRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ export default class JestTestRunner extends EventEmitter implements TestRunner {
log.debug(`Received options ${JSON.stringify(options)}`);

this.options = _.assign(DEFAULT_OPTIONS, {
rootDir: process.cwd(),
roots: process.cwd(),
testPathDirs: [process.cwd()]
rootDir: process.cwd()
});
log.debug(`Using options ${JSON.stringify(this.options)}`);

Expand Down Expand Up @@ -128,4 +126,4 @@ export default class JestTestRunner extends EventEmitter implements TestRunner {
dispose?(): Promise<any> | void {
log.info('Disposing');
}
}
}

0 comments on commit fc2799d

Please sign in to comment.