Skip to content

Commit 45bb865

Browse files
committed
fix: 🐛 Corrige l'exécution des Tests Unitaires
1 parent 44f230e commit 45bb865

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

front/babel.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ module.exports = function (api) {
33
api.cache(true);
44
return {
55
presets: ["babel-preset-expo", "@babel/preset-typescript"],
6-
plugins: ["inline-dotenv", "react-native-reanimated/plugin"],
6+
plugins: [
7+
"inline-dotenv",
8+
"react-native-reanimated/plugin",
9+
["@babel/plugin-transform-private-methods", { loose: true }],
10+
],
711
};
812
};

front/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
},
117117
"devDependencies": {
118118
"@babel/core": "^7.19.3",
119+
"@babel/plugin-transform-private-methods": "^7.22.5",
119120
"@babel/preset-typescript": "^7.16.0",
120121
"@socialgouv/eslint-config-react": "^1.104.0",
121122
"@socialgouv/eslint-config-typescript": "^1.88.0",

0 commit comments

Comments
 (0)