Skip to content

Commit

Permalink
fix(jest-environment-jsdom): add optional peer dependency on canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Oct 8, 2022
1 parent 9984ba1 commit 90fb8c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/jest-environment-jsdom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
"devDependencies": {
"@jest/test-utils": "workspace:^"
},
"peerDependencies": {
"canvas": "^2.5.0"
},
"peerDependenciesMeta": {
"canvas": {
"optional": true
}
},
"engines": {
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
},
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12421,6 +12421,11 @@ __metadata:
jest-mock: "workspace:^"
jest-util: "workspace:^"
jsdom: ^20.0.0
peerDependencies:
canvas: ^2.5.0
peerDependenciesMeta:
canvas:
optional: true
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 90fb8c8

Please sign in to comment.