Installation Puppeteer pour utilisation version HeadLess des navigateurs pour les tests karma.js

This commit is contained in:
Fabrice PENHOËT 2021-10-12 10:49:47 +02:00
parent 2482a65f04
commit 3fa780d27e
3 changed files with 7063 additions and 29 deletions

View File

@ -1,6 +1,8 @@
// Karma configuration
// Generated on Thu Aug 05 2021 10:46:35 GMT+0200 (heure dété dEurope centrale)
process.env.CHROME_BIN = require('puppeteer').executablePath()
module.exports = function(config) {
config.set({
@ -47,7 +49,7 @@ module.exports = function(config) {
// start these browsers
// available browser launchers: https://www.npmjs.com/search?q=keywords:karma-launcher
browsers: ['Firefox', 'Chromium'],
browsers: ['FirefoxHeadless', 'ChromiumHeadless'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits

7087
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,6 +32,7 @@
"karma-firefox-launcher": "^2.1.1",
"karma-jasmine": "^4.0.1",
"karma-typescript": "^5.5.2",
"puppeteer": "^10.4.0",
"ts-loader": "^9.2.6",
"typescript": "^4.4.3",
"webpack": "^5.56.1",