Skip to content

Commit

Permalink
fix: support false values in jest config override (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
FezVrasta committed Dec 12, 2020
1 parent 6452a09 commit 10dd04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/utils/rewireJestConfig.js
Expand Up @@ -15,7 +15,7 @@ module.exports = (config) => {
Object.keys(overrides)
.forEach(key => {
//We don't overwrite the default config, but add to each property if not a string
if(config[key]) {
if(key in config) {
if(typeof overrides[key] === 'string' || typeof overrides[key] === 'number' || typeof overrides[key] === 'boolean') {
config[key] = overrides[key];
} else if(Array.isArray(overrides[key])) {
Expand Down

0 comments on commit 10dd04a

Please sign in to comment.