Skip to content

Commit 09e967b

Browse files
authored
fix: lower minimum node version for pretty-format (#10435)
1 parent 5c6480b commit 09e967b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Fixes
66

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

910
### Chore & Maintenance
1011

packages/pretty-format/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"react-test-renderer": "*"
2929
},
3030
"engines": {
31-
"node": ">= 10.14.2"
31+
"node": ">= 10"
3232
},
3333
"publishConfig": {
3434
"access": "public"

scripts/buildUtils.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ module.exports.getPackages = function getPackages() {
3434

3535
assert.equal(
3636
pkg.engines.node,
37-
pkg.name === 'jest-worker' ? '>= 10.13.0' : nodeEngineRequiremnt,
37+
pkg.name === 'jest-worker'
38+
? '>= 10.13.0'
39+
: pkg.name === 'pretty-format'
40+
? '>= 10'
41+
: nodeEngineRequiremnt,
3842
`Engine requirement in ${pkg.name} should match root`,
3943
);
4044
});

0 commit comments

Comments
 (0)