Skip to content

Commit ae32482

Browse files
committed
test: fix missing crypto property for jest tests
(cherry picked from commit 18d36a6)
1 parent b539a34 commit ae32482

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jestSetup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ jest.mock('@mui/styles/withStyles', () => () => () => ({}));
88
Object.defineProperty(window, 'crypto', {
99
value: {
1010
getRandomValues: (arr) => new Uint32Array(arr.length),
11+
subtle: {},
1112
},
1213
});

0 commit comments

Comments
 (0)