Skip to content

Commit

Permalink
add back jestShim
Browse files Browse the repository at this point in the history
Signed-off-by: ivababukova <[email protected]>
  • Loading branch information
ivababukova committed Oct 5, 2023
1 parent 6d0b56b commit 4fec77c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/__test__/test-utils/jestShim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file is required for jest to work with '@wojtekmaj/enzyme-adapter-react-17'
* module.
*/
import {
TextDecoder, TextEncoder,
} from 'util';

global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;

0 comments on commit 4fec77c

Please sign in to comment.