title: Issue in Running Unit test using Karma for Angular Project in GitLab CI
body: <p>I am getting below error :</p>
  
  <ul>
  <li>313 $ npm run test</li>
  <li>314 > angular-base-line@0.0.0 test /builds/8800/IT/EAPC/base-line-project/angular</li>
  <li>315 > ng test</li>
  <li>316 30 01 2020 10:45:00.853:WARN [karma]: No captured browser, open <a href="http://localhost:9876/" rel="nofollow noreferrer">http://localhost:9876/</a></li>
  <li>317 30 01 2020 10:45:00.894:INFO [karma-server]: Karma v4.4.1 server started at <a href="http://0.0.0.0:9876/" rel="nofollow noreferrer">http://0.0.0.0:9876/</a></li>
  <li>318 30 01 2020 10:45:00.895:INFO [launcher]: Launching browsers ChromeHeadlessCustom with concurrency unlimited</li>
  <li>319 30 01 2020 10:45:00.903:INFO [launcher]: Starting browser ChromeHeadless</li>
  <li>........ </li>
  <li>........</li>
  <li>337 30 01 2020 10:45:06.908:WARN [launcher]: ChromeHeadless have not captured in 6000 ms, killing.</li>
  <li>338 30 01 2020 10:45:08.909:WARN [launcher]: ChromeHeadless was not killed in 2000 ms, sending SIGKILL.</li>
  <li>339 30 01 2020 10:45:10.912:WARN [launcher]: ChromeHeadless was not killed by SIGKILL in 2000 ms, continuing.</li>
  </ul>
  
  <p>My karma conf file </p>
  
  <pre class="lang-js prettyprint-override"><code>module.exports = function (config) {
  
    const process = require('process');
    process.env.CHROME_BIN = require('puppeteer').executablePath();
  
    config.set({
      basePath: '',
  
      frameworks: ['jasmine', '@angular-devkit/build-angular'],
      plugins: [
        require('karma-jasmine'),
        require('karma-chrome-launcher'),
        require('phantomjs-prebuilt'),
        //require('karma-phantomjs-launcher'),
        require('karma-jasmine-html-reporter'),
        require('karma-coverage-istanbul-reporter'),
        require('@angular-devkit/build-angular/plugins/karma')
      ],
      client:{
        clearContext: false // leave Jasmine Spec Runner output visible in browser
      },
      coverageIstanbulReporter: {
        dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
        fixWebpackSourcePaths: true
      },
  
      reporters: ['progress', 'kjhtml'],
      port: 9876,
      colors: true,
      logLevel: config.LOG_INFO,
      autoWatch: true,
      browserSocketTimeout: 6000,
      browserNoActivityTimeout: 6000,
      captureTimeout: 6000,
      browserDisconnectTimeout : 6000,
      browserDisconnectTolerance : 1,
       customLaunchers: {
        ChromeHeadlessCustom: {
              base: 'ChromeHeadless',
              flags: [
                '--headless',
                '--disable-gpu',
              '--no-sandbox',
              '--no-proxy-server',
              '--disable-web-security'
              ]
            }
      }, 
        browsers: ['ChromeHeadlessCustom'],
      singleRun: false
    });
  };
  </code></pre>
  
  <ul>
  <li>My Yaml file </li>
  </ul>
  
  <pre><code>development-tests:
    image: node:8-alpine
    stage: tests
    tags: 
        - ci-cd
    environment: Development
    only:
    - master
    #dependencies:
    # - development-build
  
    script:
  
       - apk update &amp;&amp; apk upgrade &amp;&amp; \
       - echo @edge http://nl.alpinelinux.org/alpine/edge/community &gt;&gt; /etc/apk/repositories &amp;&amp; \
       - echo @edge http://nl.alpinelinux.org/alpine/edge/main &gt;&gt; /etc/apk/repositories &amp;&amp; \
       #- apk add --no-cache bash chromium@edge nss@edge
       - apk add --no-cache g++ chromium 
       - export CHROME_BIN="/usr/bin/chromium-browser"
       - export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
       - export SASS_BINARY_NAME="linux-x64-67"
       - npm install --save-dev puppeteer karma-chrome-launcher
       - npm i puppeteer
       - npm install
       - npm run test
  </code></pre>
  
  <ul>
  <li>Any solutions for this?</li>
  </ul>