Skip to content

Commit

Permalink
(deps): upgrade to canvas@2, jsdom@15
Browse files Browse the repository at this point in the history
- because canvas@1 is deprecated and is having install issues
  - see hhttps://travis-ci.org/agilgur5/react-signature-canvas/builds/650962136,
    https://travis-ci.org/agilgur5/react-signature-canvas/builds/658062587,
    etc
  • Loading branch information
agilgur5 committed Feb 10, 2022
1 parent 91e421c commit c784a6f
Show file tree
Hide file tree
Showing 3 changed files with 226 additions and 24 deletions.
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
// Jest 24 defaults to JSDOM 11, upgrade to 15 to support canvas@2
testEnvironment: 'jest-environment-jsdom-fifteen',
setupFilesAfterEnv: [
// configure enzyme w/ react adapter
'<rootDir>/test/config/configure-enzyme.js',
Expand Down
245 changes: 222 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@
"babel-preset-es2015": "^6.14.0",
"babel-preset-react": "^6.11.1",
"babel-preset-stage-2": "^6.13.0",
"canvas-prebuilt": "^1.6.11",
"canvas": "^2.6.1",
"css-loader": "^0.24.0",
"enzyme": "^3.10.0",
"jest": "^24.8.0",
"jest-environment-jsdom-fifteen": "^1.0.2",
"jest-without-globals": "^0.0.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
Expand Down

0 comments on commit c784a6f

Please sign in to comment.