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 59e58cd commit b742384Copy full SHA for b742384
scripts/setupJestEnv.ts
@@ -12,7 +12,10 @@ expect.extend({
12
return {
13
pass: false,
14
message: () =>
15
- `expected "${received}" to have been warned.\n\nActual messages:\n\n - ${msgs}`
+ `expected "${received}" to have been warned` +
16
+ (msgs.length
17
+ ? `.\n\nActual messages:\n\n - ${msgs}`
18
+ : ` but no warning was recorded.`)
19
}
20
21
},
0 commit comments