Skip to content

Commit a7e0912

Browse files
authored
chore: update node babel syntax preset (#10747)
1 parent a94730c commit a7e0912

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

CHANGELOG.md

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

99
- `[babel-plugin-jest-hoist]` Preserve order of hoisted mock nodes within containing block ([#10536](https://github.com/facebook/jest/pull/10536))
10+
- `[babel-preset-jest]` Update `babel-preset-current-node-syntax` to support top level await ([#10747](https://github.com/facebook/jest/pull/10747))
1011
- `[expect]` Stop modifying the sample in `expect.objectContaining()` ([#10711](https://github.com/facebook/jest/pull/10711))
1112
- `[jest-circus, jest-jasmine2]` fix: don't assume `stack` is always a string ([#10697](https://github.com/facebook/jest/pull/10697))
1213
- `[jest-config]` Fix bug introduced in watch mode by PR [#10678](https://github.com/facebook/jest/pull/10678/files#r511037803) ([#10692](https://github.com/facebook/jest/pull/10692))

packages/babel-preset-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"main": "index.js",
1111
"dependencies": {
1212
"babel-plugin-jest-hoist": "^26.5.0",
13-
"babel-preset-current-node-syntax": "^0.1.3"
13+
"babel-preset-current-node-syntax": "^1.0.0"
1414
},
1515
"peerDependencies": {
1616
"@babel/core": "^7.0.0"

yarn.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ __metadata:
822822
languageName: node
823823
linkType: hard
824824

825-
"@babel/plugin-syntax-top-level-await@npm:^7.12.1":
825+
"@babel/plugin-syntax-top-level-await@npm:^7.12.1, @babel/plugin-syntax-top-level-await@npm:^7.8.3":
826826
version: 7.12.1
827827
resolution: "@babel/plugin-syntax-top-level-await@npm:7.12.1"
828828
dependencies:
@@ -4871,9 +4871,9 @@ __metadata:
48714871
languageName: node
48724872
linkType: hard
48734873

4874-
"babel-preset-current-node-syntax@npm:^0.1.3":
4875-
version: 0.1.4
4876-
resolution: "babel-preset-current-node-syntax@npm:0.1.4"
4874+
"babel-preset-current-node-syntax@npm:^1.0.0":
4875+
version: 1.0.0
4876+
resolution: "babel-preset-current-node-syntax@npm:1.0.0"
48774877
dependencies:
48784878
"@babel/plugin-syntax-async-generators": ^7.8.4
48794879
"@babel/plugin-syntax-bigint": ^7.8.3
@@ -4886,9 +4886,10 @@ __metadata:
48864886
"@babel/plugin-syntax-object-rest-spread": ^7.8.3
48874887
"@babel/plugin-syntax-optional-catch-binding": ^7.8.3
48884888
"@babel/plugin-syntax-optional-chaining": ^7.8.3
4889+
"@babel/plugin-syntax-top-level-await": ^7.8.3
48894890
peerDependencies:
48904891
"@babel/core": ^7.0.0
4891-
checksum: f54dfafd352b5671dfe549d6e2d692ec4328988bc2040f3c67b2dd4185c85ced29b39440f6f6bfd8145ad00e2cc8b39c5a218ef4bd7c08c48e3afec0583f4125
4892+
checksum: d3db297d1ade74f812e93e90b2fc76986449f4158f62d660a91b7d94a308314acc730a282fb55d3d1a2b69ce92c64b553aaef59b82f37cc68640ee779438a58c
48924893
languageName: node
48934894
linkType: hard
48944895

@@ -4934,7 +4935,7 @@ __metadata:
49344935
resolution: "babel-preset-jest@workspace:packages/babel-preset-jest"
49354936
dependencies:
49364937
babel-plugin-jest-hoist: ^26.5.0
4937-
babel-preset-current-node-syntax: ^0.1.3
4938+
babel-preset-current-node-syntax: ^1.0.0
49384939
peerDependencies:
49394940
"@babel/core": ^7.0.0
49404941
languageName: unknown

0 commit comments

Comments
 (0)