Skip to content

Commit

Permalink
Fix node crypto import
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Apr 5, 2023
1 parent 6045e7e commit 8d0f10a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testutils/jest-setup-files.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
globalThis.fetch = require('jest-fetch-mock');
// Use node crypto for crypto
globalThis.crypto = require('crypto');

require("enzyme").configure({
adapter: new (require('@wojtekmaj/enzyme-adapter-react-17'))
});

// Use node crypto for crypto
globalThis.crypto = require('node:crypto');

0 comments on commit 8d0f10a

Please sign in to comment.