Skip to content

Commit 5c915f3

Browse files
committed
Add canvas package so COLR check passes in tests
This is required for jsdom to do the right thing. We also have to bump the jsdom version, but to do that we need an alternative test environment because Jest has it pinned lower.
1 parent f0dbc85 commit 5c915f3

2 files changed

Lines changed: 302 additions & 25 deletions

File tree

‎package.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
"babel-eslint": "^10.0.3",
100100
"babel-jest": "^24.9.0",
101101
"babel-loader": "^8.0.6",
102+
"canvas": "^2.6.1",
102103
"chokidar": "^2.0.4",
103104
"concurrently": "^4.0.1",
104105
"cpx": "^1.3.2",
@@ -121,6 +122,7 @@
121122
"fs-extra": "^0.30.0",
122123
"html-webpack-plugin": "^3.2.0",
123124
"jest": "^24.9.0",
125+
"jest-environment-jsdom-thirteen": "^1.0.1",
124126
"json-loader": "^0.5.3",
125127
"loader-utils": "^1.2.3",
126128
"matrix-mock-request": "^1.2.3",
@@ -190,6 +192,7 @@
190192
"afterSign": "scripts/electron_afterSign.js"
191193
},
192194
"jest": {
195+
"testEnvironment": "jest-environment-jsdom-thirteen",
193196
"testMatch": [
194197
"<rootDir>/test/**/*-test.js"
195198
],

0 commit comments

Comments
 (0)