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 1dfd924 commit 26f3696Copy full SHA for 26f3696
meteor/__mocks__/_extendJest.ts
@@ -68,7 +68,8 @@ expect.extend({
68
received = received.error
69
}
70
71
- if (received instanceof UserError) {
+ if (UserError.isSerializedUserErrorObject(received)) {
72
+ received = UserError.fromUnknown(received)
73
const pass = !!received.toString().match(regexp)
74
return {
75
message: () => `expected ${stringifyError(received)} to match ${regexp}`,
0 commit comments