Skip to content

Commit

Permalink
In the new revisions mechanism for catching Abort error has been changed
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Oct 12, 2023
1 parent aac3257 commit 96ff69a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ module.exports = async function () {
const context: any = {
...dom.window,
Node: dom.window.Node,
DOMException: class extends Error {
constructor(message: string, name: string) {
super(message);
this.name = name;
}
},
MouseEvent: dom.window.MouseEvent,
Image: dom.window.Image,
HTMLElement: dom.window.HTMLElement,
Expand Down

0 comments on commit 96ff69a

Please sign in to comment.