Skip to content

Commit

Permalink
build: add babel-jest to peerDependencies (#2751)
Browse files Browse the repository at this point in the history
Closes #2749
  • Loading branch information
brandonchinn178 authored Jul 16, 2021
1 parent 6380ec4 commit 8bede2e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,17 @@
},
"peerDependencies": {
"jest": "^27.0.0",
"typescript": ">=3.8 <5.0"
"typescript": ">=3.8 <5.0",
"babel-jest": ">=27.0.0 <28",
"@babel/core": ">=7.0.0-beta.0 <8"
},
"peerDependenciesMeta": {
"babel-jest": {
"optional": true
},
"@babel/core": {
"optional": true
}
},
"husky": {
"hooks": {
Expand Down
2 changes: 2 additions & 0 deletions src/utils/version-checkers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const logger = rootLogger.child({ namespace: 'versions' })

/**
* @internal
*
* Don't forget to update peerDependencies in package.json when changing these.
*/
const enum ExpectedVersions {
Jest = '>=27.0.0 <28',
Expand Down

0 comments on commit 8bede2e

Please sign in to comment.