Skip to content
This repository has been archived by the owner on Apr 30, 2022. It is now read-only.

owja/node-chrome-headless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Node with Chrome Headless for Gitlab CI Runner

Docker Build Status Docker Image Size Docker Pulls

This is a simple docker container for running karma unit tests with chrome headless.

Usage

Simply configure and run the test like every other day and run the tests. For example:

karma.conf.js

browsers: [
    'ChromeHeadless_NoSandbox',
],

customLaunchers: {
    ChromeHeadless_NoSandbox: {
        base: 'ChromeHeadless',
        flags: [
            '--no-sandbox',
            '--disable-setuid-sandbox',
            '--lang=en_GB,en',
            '--disable-gpu',
            '--remote-debugging-port=9222',
        ],
    },
},
$ npm run tests