fix headless chrome
This commit is contained in:
parent
a5f1cc5eff
commit
b1692e4e45
@ -1,10 +1,9 @@
|
||||
// Karma configuration file, see link for more information
|
||||
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
||||
|
||||
process.env.CHROME_BIN = require('puppeteer').executablePath();
|
||||
|
||||
module.exports = function (config) {
|
||||
const puppeteer = require('puppeteer');
|
||||
// noinspection JSUnresolvedFunction
|
||||
process.env.CHROME_BIN = puppeteer.executablePath();
|
||||
config.set({
|
||||
basePath: '',
|
||||
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
||||
@ -43,16 +42,14 @@ module.exports = function(config) {
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
// browsers: ['Chrome', 'ChromeHeadless'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
browsers: ['MyChromeHeadless'],
|
||||
customLaunchers: {
|
||||
ChromeHeadless: {
|
||||
base: 'Chrome',
|
||||
MyChromeHeadless: {
|
||||
base: 'ChromeHeadless',
|
||||
flags: [
|
||||
'--headless',
|
||||
'--no-sandbox',
|
||||
'--disable-setuid-sandbox',
|
||||
'--disable-gpu',
|
||||
'--disable-dev-shm-usage',
|
||||
'--remote-debugging-port=9222',
|
||||
],
|
||||
},
|
||||
|
||||
531
frontend/package-lock.json
generated
531
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -29,6 +29,7 @@
|
||||
"angular2-jwt": "^0.2.3",
|
||||
"bootstrap": "~4.3.1",
|
||||
"jquery": "3.5.1",
|
||||
"karma-phantomjs-launcher": "1.0.4",
|
||||
"ngx-logger": "4.1.9",
|
||||
"popper.js": "1.16.0",
|
||||
"rxjs": "^6.5.5",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user