Skip to content

Commit

Permalink
Fix missing global
Browse files Browse the repository at this point in the history
  • Loading branch information
Jym77 committed Oct 4, 2024
1 parent 3b1ae5a commit 58c0b8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unit-testing/vue/jsdom-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class MyJSDOMEnvironment extends JSDOMEnvironment.default {

// here, you have access to regular Node globals, which you can add to the test environment
this.global.TextEncoder = TextEncoder;
this.global.TextDecoder = TextDecoder;

// @ts-ignore
this.global.crypto = crypto;
Expand Down

0 comments on commit 58c0b8f

Please sign in to comment.