Skip to content

Commit da1c618

Browse files
Merge pull request #218 from conveyal/dev
v3.10.0
2 parents 5a5487a + dcfd75f commit da1c618

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/jest.js

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require('path')
2+
const pkg = require('./pkg')
23

34
module.exports.generateTestConfig = (patterns, options) => {
45
// jest config params
@@ -33,6 +34,13 @@ module.exports.generateTestConfig = (patterns, options) => {
3334
}
3435
})
3536

37+
// add local package.json-level config options
38+
if (pkg.jest != null) {
39+
Object.keys(pkg.jest).forEach(key => {
40+
jestConfig[key] = pkg.jest[key]
41+
})
42+
}
43+
3644
// jest cli params
3745
let jestArguments = ['--forceExit']
3846
if (options.updateSnapshots) {

0 commit comments

Comments
 (0)