add jest canvas

This commit is contained in:
Thibaut Lassalle 2021-10-10 07:03:47 -07:00
parent 0b0354eaac
commit 76ccba74ed
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,6 @@ module.exports = {
coverageDirectory: "coverage",
collectCoverage: true,
coverageProvider: "v8",
setupFiles: ["jest-webgl-canvas-mock"],
setupFiles: ["jest-canvas-mock", "jest-webgl-canvas-mock"],
testEnvironment: "jsdom",
};

View File

@ -55,6 +55,7 @@
"husky": "^6.0.0",
"jaguarjs-jsdoc": "^1.1.0",
"jest": "^27.2.3",
"jest-canvas-mock": "^2.3.1",
"jest-webgl-canvas-mock": "^0.2.3",
"jsdoc": "^3.6.7",
"lint-staged": "^11.0.0",