File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
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
+ } ;
Original file line number Diff line number Diff line change 8
8
"build" : " ng build" ,
9
9
"watch" : " ng build --watch --configuration development" ,
10
10
"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" ,
12
13
"coverage" : " ng test --no-watch --code-coverage" ,
13
14
"lint" : " ng lint" ,
14
15
"serve" : " node dist/angular-starter/server/server.mjs" ,
You can’t perform that action at this time.
0 commit comments