Skip to content

Commit a2f5129

Browse files
committed
Fix gitlab-ci
1 parent ae5129e commit a2f5129

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

frontend-angular/karma.conf.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = function (config) {
2+
config.set({
3+
// ... autres configs
4+
browsers: ['Chrome', 'ChromeHeadless'],
5+
customLaunchers: {
6+
ChromeHeadless: {
7+
base: 'Chrome',
8+
flags: [
9+
'--headless',
10+
'--disable-gpu',
11+
'--no-sandbox',
12+
'--disable-dev-shm-usage'
13+
]
14+
}
15+
}
16+
});
17+
};

frontend-angular/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "ng build",
99
"watch": "ng build --watch --configuration development",
1010
"test": "ng test",
11-
"test:headless": "ng test --watch=false --browsers=ChromeHeadless --no-sandbox",
11+
"test:headless2": "ng test --watch=false --browsers=ChromeHeadless --no-sandbox",
12+
"test:headless": "ng test --watch=false --browsers=ChromeHeadless",
1213
"coverage": "ng test --no-watch --code-coverage",
1314
"lint": "ng lint",
1415
"serve": "node dist/angular-starter/server/server.mjs",

0 commit comments

Comments
 (0)