Skip to content

Commit 49b4c92

Browse files
author
Loïc Mangeonjean
committed
fix(tests): undefine process
1 parent a9cc684 commit 49b4c92

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

browserMock.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Object.defineProperty(document, 'queryCommandSupported', {
66
value: jest.fn().mockImplementation(() => true),
77
});
88

9+
window.process = undefined
10+
911
Object.defineProperty(window, 'matchMedia', {
1012
writable: true,
1113
value: jest.fn().mockImplementation(query => ({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"modulePathIgnorePatterns": [
101101
"<rootDir>/dist/"
102102
],
103-
"setupFiles": [
103+
"setupFilesAfterEnv": [
104104
"fake-indexeddb/auto",
105105
"<rootDir>/browserMock.js"
106106
],

0 commit comments

Comments
 (0)