Skip to content

Commit b2c8a69

Browse files
authored
chore: remove Node 8 references and some dead code (#9284)
* chore: remove Node 8 references and some dead code * import async hooks normally * bump node to 8.3 because V8 6.0 with Turbofan and better perf * update comments in pretty-format
1 parent 012fc8b commit b2c8a69

File tree

53 files changed

+89
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+89
-109
lines changed

docs/CLI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Print debugging info about your Jest config.
158158

159159
### `--detectOpenHandles`
160160

161-
Attempt to collect and print open handles preventing Jest from exiting cleanly. Use this in cases where you need to use `--forceExit` in order for Jest to exit to potentially track down the reason. This implies `--runInBand`, making tests run serially. Implemented using [`async_hooks`](https://nodejs.org/api/async_hooks.html), so it only works in Node 8 and newer. This option has a significant performance penalty and should only be used for debugging.
161+
Attempt to collect and print open handles preventing Jest from exiting cleanly. Use this in cases where you need to use `--forceExit` in order for Jest to exit to potentially track down the reason. This implies `--runInBand`, making tests run serially. Implemented using [`async_hooks`](https://nodejs.org/api/async_hooks.html). This option has a significant performance penalty and should only be used for debugging.
162162

163163
### `--env=<environment>`
164164

jest.config.ci.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
'use strict';
99

10-
// Object spread is just node 8
11-
module.exports = Object.assign({}, require('./jest.config'), {
10+
module.exports = {
11+
...require('./jest.config'),
1212
coverageReporters: ['json'],
1313
reporters: [
1414
[
@@ -17,4 +17,4 @@ module.exports = Object.assign({}, require('./jest.config'), {
1717
],
1818
['jest-silent-reporter', {useDots: true}],
1919
],
20-
});
20+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,6 @@
144144
"logo": "https://opencollective.com/jest/logo.txt"
145145
},
146146
"engines": {
147-
"node": ">= 8"
147+
"node": ">= 8.3"
148148
}
149149
}

packages/babel-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@babel/core": "^7.0.0"
2727
},
2828
"engines": {
29-
"node": ">= 8"
29+
"node": ">= 8.3"
3030
},
3131
"publishConfig": {
3232
"access": "public"

packages/babel-plugin-jest-hoist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"directory": "packages/babel-plugin-jest-hoist"
88
},
99
"engines": {
10-
"node": ">= 8"
10+
"node": ">= 8.3"
1111
},
1212
"license": "MIT",
1313
"main": "build/index.js",

packages/babel-preset-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@babel/core": "^7.0.0"
1818
},
1919
"engines": {
20-
"node": ">= 8"
20+
"node": ">= 8.3"
2121
},
2222
"publishConfig": {
2323
"access": "public"

packages/diff-sequences/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"diff"
1717
],
1818
"engines": {
19-
"node": ">= 8"
19+
"node": ">= 8.3"
2020
},
2121
"main": "build/index.js",
2222
"types": "build/index.d.ts",

packages/eslint-config-fb-strict/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"eslint-plugin-react": "^7.1.0"
2121
},
2222
"engines": {
23-
"node": ">= 8"
23+
"node": ">= 8.3"
2424
},
2525
"publishConfig": {
2626
"access": "public"

packages/expect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"immutable": "^4.0.0-rc.12"
2323
},
2424
"engines": {
25-
"node": ">= 8"
25+
"node": ">= 8.3"
2626
},
2727
"publishConfig": {
2828
"access": "public"

packages/jest-changed-files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"throat": "^5.0.0"
1616
},
1717
"engines": {
18-
"node": ">= 8"
18+
"node": ">= 8.3"
1919
},
2020
"publishConfig": {
2121
"access": "public"

0 commit comments

Comments
 (0)