Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #13 from mshogren/master
Browse files Browse the repository at this point in the history
fix(configuration): Remove unnecessary options
  • Loading branch information
mthmulders authored Mar 1, 2017
2 parents f718a45 + dd5de98 commit 2733b01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/JestTestRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const DEFAULT_OPTIONS: Object = {
setupFiles: [],
snapshotSerializers: [],
testEnvironment: 'jest-environment-jsdom',
testRegex: '.*Spec\\.js$',
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.jsx?$',
testRunner: 'jest-jasmine2',
verbose: true
};
Expand All @@ -41,7 +41,6 @@ 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 Expand Up @@ -128,4 +127,4 @@ export default class JestTestRunner extends EventEmitter implements TestRunner {
dispose?(): Promise<any> | void {
log.info('Disposing');
}
}
}
2 changes: 1 addition & 1 deletion testResources/sampleProject/src/__tests__/AddFailedSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ describe('Add', function() {

expect(actual).toBe(expected);
});
})
});

0 comments on commit 2733b01

Please sign in to comment.