Skip to content

Commit

Permalink
Merge 2b6d7a8 into 5db4d26
Browse files Browse the repository at this point in the history
  • Loading branch information
andstor committed Apr 27, 2020
2 parents 5db4d26 + 2b6d7a8 commit 6845c1d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// jest.config.js
module.exports = {
setupFiles: ['./test/setupEnv.js']
}
8 changes: 8 additions & 0 deletions test/setupEnv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if (typeof TextEncoder === 'undefined') {
const { TextEncoder } = require('util');
global.TextEncoder = TextEncoder;
}
if (typeof TextDecoder === 'undefined') {
const { TextDecoder } = require('util');
global.TextDecoder = TextDecoder;
}

0 comments on commit 6845c1d

Please sign in to comment.