Skip to content

Commit

Permalink
fix: lower minimum node version for pretty-format (#10435)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Aug 22, 2020
1 parent 5c6480b commit 09e967b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixes

- `[expect]` Fix `toMatchObject` to work with inherited class getters ([#10381](https://github.com/facebook/jest/pull/10381))
- `[pretty-format]` Lower minimum node version to >= 10 ([#10435](https://github.com/facebook/jest/pull/10435))

### Chore & Maintenance

Expand Down
2 changes: 1 addition & 1 deletion packages/pretty-format/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"react-test-renderer": "*"
},
"engines": {
"node": ">= 10.14.2"
"node": ">= 10"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 5 additions & 1 deletion scripts/buildUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ module.exports.getPackages = function getPackages() {

assert.equal(
pkg.engines.node,
pkg.name === 'jest-worker' ? '>= 10.13.0' : nodeEngineRequiremnt,
pkg.name === 'jest-worker'
? '>= 10.13.0'
: pkg.name === 'pretty-format'
? '>= 10'
: nodeEngineRequiremnt,
`Engine requirement in ${pkg.name} should match root`,
);
});
Expand Down

0 comments on commit 09e967b

Please sign in to comment.