Skip to content

Commit

Permalink
[#365] Fix structuredClone is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan committed Oct 29, 2024
1 parent 9802c73 commit c519047
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jest-environment-jsdom.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class JSDOMEnvironment extends $JSDOMEnvironment {
if (!global.TextEncoder) global.TextEncoder = TextEncoder;
if (!global.TextDecoder) global.TextDecoder = TextDecoder;
if (!global.Uint8Array) global.Uint8Array = Uint8Array;
this.global.structuredClone = structuredClone;
}
}

Expand Down

0 comments on commit c519047

Please sign in to comment.