Skip to content

Commit 2360135

Browse files
committed
transform class private methods for jest
1 parent 98ce408 commit 2360135

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

babel.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ module.exports = {
1111
['@babel/plugin-proposal-decorators', { version: '2023-11' }],
1212
'@babel/plugin-transform-class-properties',
1313
'@babel/plugin-proposal-explicit-resource-management',
14+
'@babel/plugin-transform-private-methods',
1415
],
1516
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@babel/plugin-proposal-explicit-resource-management": "7.25.9",
3333
"@babel/plugin-transform-class-properties": "7.25.9",
3434
"@babel/plugin-transform-class-static-block": "7.26.0",
35+
"@babel/plugin-transform-private-methods": "^7.25.9",
3536
"@babel/preset-env": "7.26.9",
3637
"@babel/preset-typescript": "7.27.0",
3738
"@changesets/changelog-github": "^0.5.0",

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13550,6 +13550,7 @@ __metadata:
1355013550
"@babel/plugin-proposal-explicit-resource-management": "npm:7.25.9"
1355113551
"@babel/plugin-transform-class-properties": "npm:7.25.9"
1355213552
"@babel/plugin-transform-class-static-block": "npm:7.26.0"
13553+
"@babel/plugin-transform-private-methods": "npm:^7.25.9"
1355313554
"@babel/preset-env": "npm:7.26.9"
1355413555
"@babel/preset-typescript": "npm:7.27.0"
1355513556
"@changesets/changelog-github": "npm:^0.5.0"

0 commit comments

Comments
 (0)