Skip to content

Commit 4feac2f

Browse files
committed
fix: add babel dependencies and clean install for coverage compatibility
1 parent 551f92b commit 4feac2f

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/sonarqube.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ jobs:
6666
6767
echo "===== Frontend tests + coverage ====="
6868
cd src/ui/web
69-
npm ci
69+
70+
# Clean install to ensure compatibility
71+
rm -rf node_modules package-lock.json
72+
npm install
73+
74+
# Run tests with coverage
7075
npm test -- --coverage --watchAll=false
7176
7277
echo "===== Verify Frontend coverage ====="

src/ui/web/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@
9292
"@types/react-copy-to-clipboard": "^5.0.7",
9393
"http-proxy-middleware": "^3.0.5",
9494
"identity-obj-proxy": "^3.0.0",
95-
"license-checker": "^25.0.1"
95+
"license-checker": "^25.0.1",
96+
"babel-plugin-istanbul": "^6.1.1",
97+
"@babel/core": "^7.23.0",
98+
"@babel/preset-env": "^7.23.0"
9699
},
97100
"overrides": {
98101
"webpack-dev-server": "^5.2.1",

0 commit comments

Comments
 (0)