Skip to content

Commit

Permalink
fix(runner) Also specify roots option
Browse files Browse the repository at this point in the history
This in preparation of future Jest versions (> 18.1) that
will have `testPathDirs` renamed to `roots`.
See jestjs/jest#2776.
  • Loading branch information
mthmulders committed Feb 10, 2017
1 parent 6ae695f commit eb8974c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/JestTestRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default class JestTestRunner extends EventEmitter implements TestRunner {

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

0 comments on commit eb8974c

Please sign in to comment.