We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
false
1 parent 6452a09 commit 10dd04aCopy full SHA for 10dd04a
scripts/utils/rewireJestConfig.js
@@ -15,7 +15,7 @@ module.exports = (config) => {
15
Object.keys(overrides)
16
.forEach(key => {
17
//We don't overwrite the default config, but add to each property if not a string
18
- if(config[key]) {
+ if(key in config) {
19
if(typeof overrides[key] === 'string' || typeof overrides[key] === 'number' || typeof overrides[key] === 'boolean') {
20
config[key] = overrides[key];
21
} else if(Array.isArray(overrides[key])) {
0 commit comments