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.
1 parent 1b97b1b commit 2204d35Copy full SHA for 2204d35
jest/helpers.ts
@@ -194,7 +194,11 @@ function handleTestFailure(
194
result: {[key: string]: any},
195
args: string[] | undefined,
196
) {
197
- if (!options.expectedFailure && result.code !== 0) {
+ if (
198
+ !options.expectedFailure &&
199
+ result.code !== undefined &&
200
+ result.code !== 0
201
+ ) {
202
console.log(`Running ${cmd} command failed for unexpected reason. Here's more info:
203
${chalk.bold('cmd:')} ${cmd}
204
${chalk.bold('options:')} ${JSON.stringify(options)}
0 commit comments