Skip to content

Commit d5e2a5e

Browse files
authored
Merge branch 'master' into first
2 parents b3be275 + c808901 commit d5e2a5e

58 files changed

Lines changed: 569 additions & 593 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,21 @@
44

55
### Fixes
66

7+
- `[jest-validate]` Show suggestion only when unrecognized cli param is longer than 1 character ([#10604](https://github.com/facebook/jest/pull/10604))
78
- `[jest-validate]` Validate `testURL` as CLI option ([#10595](https://github.com/facebook/jest/pull/10595))
89

910
### Chore & Maintenance
1011

1112
### Performance
1213

14+
## 26.5.2
15+
16+
### Fixes
17+
18+
- `[*]` Revert usage of Escalade and rollback Yargs to v15 as it breaks Node 13 ([#10599](https://github.com/facebook/jest/pull/10599))
19+
- `[jest-circus]` Setup globals before emitting `setup`, and include Jest globals in the `setup` payload ([#10598](https://github.com/facebook/jest/pull/10598))
20+
- `[jest-mock]` Fix typings for `mockResolvedValue`, `mockResolvedValueOnce`, `mockRejectedValue` and `mockRejectedValueOnce` ([#10600](https://github.com/facebook/jest/pull/10600))
21+
1322
## 26.5.1
1423

1524
### Fixes

TestUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ const DEFAULT_PROJECT_CONFIG: Config.ProjectConfig = {
8383
globalTeardown: undefined,
8484
globals: {},
8585
haste: {},
86+
injectGlobals: true,
8687
moduleDirectories: [],
8788
moduleFileExtensions: ['js'],
8889
moduleLoader: '/test_module_loader_path',

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "26.5.1",
2+
"version": "26.5.2",
33
"npmClient": "yarn",
44
"packages": [
55
"packages/*"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"which": "^2.0.1"
8383
},
8484
"scripts": {
85-
"build-clean": "rimraf './packages/*/build' './packages/*/build-es5' './packages/*/tsconfig.tsbuildinfo'",
85+
"build-clean": "rimraf './packages/*/build' './packages/*/tsconfig.tsbuildinfo'",
8686
"build": "yarn build:js && yarn build:ts",
8787
"build:js": "node ./scripts/build.js",
8888
"build:ts": "node ./scripts/buildTs.js",

packages/babel-jest/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "babel-jest",
33
"description": "Jest plugin to use babel for transformation.",
4-
"version": "26.5.0",
4+
"version": "26.5.2",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/facebook/jest.git",
@@ -11,8 +11,8 @@
1111
"main": "build/index.js",
1212
"types": "build/index.d.ts",
1313
"dependencies": {
14-
"@jest/transform": "^26.5.0",
15-
"@jest/types": "^26.5.0",
14+
"@jest/transform": "^26.5.2",
15+
"@jest/types": "^26.5.2",
1616
"@types/babel__core": "^7.1.7",
1717
"babel-plugin-istanbul": "^6.0.0",
1818
"babel-preset-jest": "^26.5.0",

packages/expect/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "expect",
3-
"version": "26.5.0",
3+
"version": "26.5.2",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/facebook/jest.git",
@@ -10,11 +10,11 @@
1010
"main": "build/index.js",
1111
"types": "build/index.d.ts",
1212
"dependencies": {
13-
"@jest/types": "^26.5.0",
13+
"@jest/types": "^26.5.2",
1414
"ansi-styles": "^4.0.0",
1515
"jest-get-type": "^26.3.0",
16-
"jest-matcher-utils": "^26.5.0",
17-
"jest-message-util": "^26.5.0",
16+
"jest-matcher-utils": "^26.5.2",
17+
"jest-message-util": "^26.5.2",
1818
"jest-regex-util": "^26.0.0"
1919
},
2020
"devDependencies": {

packages/expect/src/__tests__/fakeChalk.test.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

packages/expect/src/fakeChalk.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

packages/jest-changed-files/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jest-changed-files",
3-
"version": "26.5.0",
3+
"version": "26.5.2",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/facebook/jest.git",
@@ -10,7 +10,7 @@
1010
"main": "build/index.js",
1111
"types": "build/index.d.ts",
1212
"dependencies": {
13-
"@jest/types": "^26.5.0",
13+
"@jest/types": "^26.5.2",
1414
"execa": "^4.0.0",
1515
"throat": "^5.0.0"
1616
},

packages/jest-circus/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jest-circus",
3-
"version": "26.5.1",
3+
"version": "26.5.2",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/facebook/jest.git",
@@ -11,24 +11,24 @@
1111
"types": "build/index.d.ts",
1212
"dependencies": {
1313
"@babel/traverse": "^7.1.0",
14-
"@jest/environment": "^26.5.0",
15-
"@jest/test-result": "^26.5.0",
16-
"@jest/types": "^26.5.0",
14+
"@jest/environment": "^26.5.2",
15+
"@jest/test-result": "^26.5.2",
16+
"@jest/types": "^26.5.2",
1717
"@types/babel__traverse": "^7.0.4",
1818
"@types/node": "*",
1919
"chalk": "^4.0.0",
2020
"co": "^4.6.0",
2121
"dedent": "^0.7.0",
22-
"expect": "^26.5.0",
22+
"expect": "^26.5.2",
2323
"is-generator-fn": "^2.0.0",
24-
"jest-each": "^26.5.0",
25-
"jest-matcher-utils": "^26.5.0",
26-
"jest-message-util": "^26.5.0",
27-
"jest-runner": "^26.5.1",
28-
"jest-runtime": "^26.5.0",
29-
"jest-snapshot": "^26.5.0",
30-
"jest-util": "^26.5.0",
31-
"pretty-format": "^26.5.0",
24+
"jest-each": "^26.5.2",
25+
"jest-matcher-utils": "^26.5.2",
26+
"jest-message-util": "^26.5.2",
27+
"jest-runner": "^26.5.2",
28+
"jest-runtime": "^26.5.2",
29+
"jest-snapshot": "^26.5.2",
30+
"jest-util": "^26.5.2",
31+
"pretty-format": "^26.5.2",
3232
"stack-utils": "^2.0.2",
3333
"throat": "^5.0.0"
3434
},

0 commit comments

Comments
 (0)