Skip to content

Commit 64df151

Browse files
committed
Fix jest tests
1 parent 1f30205 commit 64df151

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

jest.setup.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const failOnConsole = require('jest-fail-on-console')
2+
require('whatwg-fetch')
23

34
class IntersectionObserver {
45
constructor() {}

package-lock.json

+9-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@
107107
"typescript": "^4.8.3",
108108
"vite": "^6.3.2",
109109
"vite-plugin-css-injected-by-js": "^3.1.1",
110-
"webpack": "^5.75.0"
110+
"webpack": "^5.75.0",
111+
"whatwg-fetch": "^3.6.20"
111112
},
112113
"peerDependencies": {
113114
"@constructor-io/constructorio-client-javascript": "^2.51.0",

0 commit comments

Comments
 (0)