Skip to content

Commit 247e450

Browse files
authored
Merge branch 'main' into downgrade-write-file-atomic
2 parents 50c5dac + be501e1 commit 247e450

File tree

76 files changed

+285
-3627
lines changed

Some content is hidden

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

76 files changed

+285
-3627
lines changed

.eslintrc.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,15 @@ module.exports = {
235235
'jest/prefer-to-have-length': 'off',
236236
},
237237
},
238+
// snapshot in an example needs to keep escapes
239+
{
240+
files: [
241+
'**/2017-02-21-jest-19-immersive-watch-mode-test-platform-improvements.md/**',
242+
],
243+
rules: {
244+
'no-useless-escape': 'off',
245+
},
246+
},
238247

239248
// snapshots in examples plus inline snapshots need to keep backtick
240249
{

.github/workflows/nodejs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ jobs:
8282
run: yarn lint
8383
- name: run prettier
8484
run: yarn lint:prettier:ci
85+
- name: check changelog
86+
run: yarn check-changelog
8587
- name: check copyright headers
8688
run: yarn check-copyright-headers
8789

CHANGELOG.md

Lines changed: 18 additions & 3513 deletions
Large diffs are not rendered by default.

docs/ExpectAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ These helper functions and properties can be found on `this` inside a custom tes
12621262

12631263
#### `this.equals(a, b, customTesters?)`
12641264

1265-
This is a deep-equality function that will return `true` if two objects have the same values (recursively). It optionally takes a list of custom equality testers to apply to the deep equality checks. If you use this function, pass through the custom testers your tester is given so further equality checks `equals` applies can also use custom testers the test author may have configured. See the example in the [Recursive custom equality testers][#recursivecustomequalitytesters] section for more details.
1265+
This is a deep-equality function that will return `true` if two objects have the same values (recursively). It optionally takes a list of custom equality testers to apply to the deep equality checks. If you use this function, pass through the custom testers your tester is given so further equality checks `equals` applies can also use custom testers the test author may have configured. See the example in the [Recursive custom equality testers](#recursive-custom-equality-testers) section for more details.
12661266

12671267
#### Matchers vs Testers
12681268

docs/Webpack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ For more complex webpack configurations, you may also want to investigate projec
202202
In addition to installing `babel-jest` as described earlier, you'll need to add `@babel/preset-env` like so:
203203

204204
```bash npm2yarn
205-
npm install --save-dev @babel/preset-env
205+
npm install --save-dev @babel/preset-env
206206
```
207207

208208
Then, you'll want to configure Babel as follows:

e2e/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"compilerOptions": {
44
"rootDir": "./"
55
},
6-
"include": ["./**/*"]
6+
"include": ["./**/*"],
7+
"references": [{"path": "../packages/test-utils"}]
78
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
"build:js": "node ./scripts/build.mjs",
9090
"build:ts": "node ./scripts/buildTs.mjs",
9191
"bundle:ts": "node ./scripts/bundleTs.mjs",
92+
"check-changelog": "node ./scripts/checkChangelog.mjs",
9293
"check-copyright-headers": "node ./scripts/checkCopyrightHeaders.mjs",
9394
"clean-all": "yarn clean-e2e && yarn build-clean && rimraf './packages/*/node_modules' && rimraf './node_modules'",
9495
"clean-e2e": "node ./scripts/cleanE2e.mjs",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": "../../../../tsconfig.test.json",
33
"include": ["./**/*"],
4-
"references": [{"path": "../../"}]
4+
"references": [{"path": "../../"}, {"path": "../../../test-utils"}]
55
}

packages/babel-jest/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"include": ["./src/**/*"],
88
"exclude": ["./**/__tests__/**/*"],
99
// TODO: include `babel-preset-jest` if it's ever in TS even though we don't care about its types
10-
"references": [{"path": "../jest-transform"}, {"path": "../test-utils"}]
10+
"references": [{"path": "../jest-transform"}]
1111
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"extends": "../../../../tsconfig.test.json",
33
"include": ["./**/*"],
4-
"references": [{"path": "../../"}]
4+
"references": [{"path": "../../"}, {"path": "../../../test-utils"}]
55
}

0 commit comments

Comments
 (0)