Skip to content

Commit 26f3696

Browse files
committed
chore: update system test: Expect SerializedUserErrorObject in responses
1 parent 1dfd924 commit 26f3696

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

meteor/__mocks__/_extendJest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ expect.extend({
6868
received = received.error
6969
}
7070

71-
if (received instanceof UserError) {
71+
if (UserError.isSerializedUserErrorObject(received)) {
72+
received = UserError.fromUnknown(received)
7273
const pass = !!received.toString().match(regexp)
7374
return {
7475
message: () => `expected ${stringifyError(received)} to match ${regexp}`,

0 commit comments

Comments
 (0)