Properly allow undefined ignore patterns for test/include/exclude.

This commit is contained in:
Logan Smyth 2018-02-06 22:31:48 -08:00
parent a3ad518ce1
commit ec2e0b664a

View File

@ -140,6 +140,8 @@ export function assertConfigApplicableTest(
key: string,
value: mixed,
): ConfigApplicableTest | void {
if (value === undefined) return value;
if (Array.isArray(value)) {
value.forEach((item, i) => {
if (!checkValidTest(item)) {