Skip to content

Commit

Permalink
install jest cancas mock plugin to resolve : Not implemented: HTMLCan…
Browse files Browse the repository at this point in the history
…vasElement.prototype.getContext error
  • Loading branch information
jitendraashutec committed May 28, 2020
1 parent 84e717c commit 75c9900
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
setupFiles: ["jest-canvas-mock"],
collectCoverage: true,
coverageReporters: ['html', 'text-summary'],
moduleNameMapper: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"jasmine-marbles": "^0.6.0",
"jasmine-spec-reporter": "4.2.1",
"jest": "^25.4.0",
"jest-canvas-mock": "^2.2.0",
"jest-preset-angular": "^8.1.3",
"jest-stare": "^2.0.1",
"jest-zone-patch": "0.0.10",
Expand Down

0 comments on commit 75c9900

Please sign in to comment.