Skip to content

Commit 11b7d4b

Browse files
authored
Handle undefined option
1 parent 33893fd commit 11b7d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jest-config/src/normalize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ export default async function normalize(
770770
case 'testMatch':
771771
{
772772
const option = oldOptions[key];
773-
const rawValue = Array.isArray(option) ? option : [option];
773+
const rawValue = Array.isArray(option) || typeof option === "undefined" ? option : [option];
774774
const replacedRootDirTags = _replaceRootDirTags(
775775
escapeGlobCharacters(options.rootDir),
776776
rawValue,

0 commit comments

Comments
 (0)