You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* istanbul ignore next: unable to test due to https://github.com/jestjs/jest/pull/14297 */
95
-
if(lt(version,acceptedOption.minVersion)){
96
-
invalidArgs.push(
97
-
`Invalid option provided for the current version of the binary used. '${key}' was introduced in v${acceptedOption.minVersion}, but received v${version}`
98
-
);
99
-
}
81
+
// @ts-ignore: keys are from options, TS cannot infer this
82
+
constoption=options[key];
83
+
constacceptedOption=acceptedOptions[key];
100
84
101
-
/* istanbul ignore next: unable to test due to https://github.com/jestjs/jest/pull/14297 */
`Invalid option provided for the current version of the binary used. '${key}' is only present up to v${acceptedOption.maxVersion}, but received v${version}`
`Invalid value type provided for option '${key}', expected ${
93
+
acceptedOption.type
94
+
} but received ${typeofoption}`
95
+
);
96
+
}
97
+
98
+
/* istanbul ignore next: unable to test due to https://github.com/jestjs/jest/pull/14297 */
99
+
if(lt(version,acceptedOption.minVersion)){
100
+
invalidArgs.push(
101
+
`Invalid option provided for the current version of the binary used. '${key}' was introduced in v${acceptedOption.minVersion}, but received v${version}`
102
+
);
103
+
}
104
+
105
+
/* istanbul ignore next: unable to test due to https://github.com/jestjs/jest/pull/14297 */
`Invalid option provided for the current version of the binary used. '${key}' is only present up to v${acceptedOption.maxVersion}, but received v${version}`
0 commit comments