From: skjnldsv Date: Sat, 3 Aug 2024 07:44:12 +0000 (+0200) Subject: fix: jest transform private methods X-Git-Tag: v30.0.0beta4~23^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F47012%2Fhead;p=nextcloud-server.git fix: jest transform private methods Signed-off-by: skjnldsv --- diff --git a/babel.config.js b/babel.config.js index dfead674f3f..523dbe5de01 100644 --- a/babel.config.js +++ b/babel.config.js @@ -6,6 +6,7 @@ module.exports = { plugins: [ '@babel/plugin-syntax-dynamic-import', '@babel/plugin-transform-class-properties', + '@babel/plugin-transform-private-methods', // We need the bundler entry not the web one // Jest will otherwise resolve the wrong one [ diff --git a/package-lock.json b/package-lock.json index 5bcb667f4dd..b911c9792bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -89,6 +89,7 @@ }, "devDependencies": { "@babel/node": "^7.24.8", + "@babel/plugin-transform-private-methods": "^7.24.7", "@babel/preset-typescript": "^7.24.7", "@cypress/vue2": "^2.1.1", "@cypress/webpack-preprocessor": "^6.0.2", diff --git a/package.json b/package.json index 4359912a0a5..ebc731e9e04 100644 --- a/package.json +++ b/package.json @@ -117,6 +117,7 @@ }, "devDependencies": { "@babel/node": "^7.24.8", + "@babel/plugin-transform-private-methods": "^7.24.7", "@babel/preset-typescript": "^7.24.7", "@cypress/vue2": "^2.1.1", "@cypress/webpack-preprocessor": "^6.0.2",