Skip to content

Commit 10dd04a

Browse files
authored
fix: support false values in jest config override (#498)
1 parent 6452a09 commit 10dd04a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/utils/rewireJestConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = (config) => {
1515
Object.keys(overrides)
1616
.forEach(key => {
1717
//We don't overwrite the default config, but add to each property if not a string
18-
if(config[key]) {
18+
if(key in config) {
1919
if(typeof overrides[key] === 'string' || typeof overrides[key] === 'number' || typeof overrides[key] === 'boolean') {
2020
config[key] = overrides[key];
2121
} else if(Array.isArray(overrides[key])) {

0 commit comments

Comments
 (0)