Skip to content
Snippets Groups Projects
Select Git revision
  • 43c2e15374fa7271f6334e40cb80b5a1f44d5cae
  • master default protected
  • renovate/major-symfony
  • renovate/source-sans-pro-3.x
  • renovate/rollup-plugin-postcss-4.x
  • renovate/rollup-plugin-md-1.x
  • renovate/rollup-plugin-url-6.x
  • renovate/rollup-plugin-node-resolve-11.x
  • renovate/rollup-plugin-commonjs-17.x
  • demo
  • publish
  • update-deps
  • qr-perf
  • wip-cleanup
  • demo-file-handling
15 results

karma.common.conf.js

Blame
    • Reiter, Christoph's avatar
      2e099bc0
      Stop depending on puppeteer · 2e099bc0
      Reiter, Christoph authored
      While it's nice to have a fixed chrome version it slows down the yarn install,
      downloads a lot of things, and the chrome version depends on various
      system packages so one needss to have chromium installed anyway.
      
      This means developers that want to work on tests need firefox and chdomium installed.
      
      Sadly I couldn't find a way to make browsers optional in case the developer
      only has one installed.
      2e099bc0
      History
      Stop depending on puppeteer
      Reiter, Christoph authored
      While it's nice to have a fixed chrome version it slows down the yarn install,
      downloads a lot of things, and the chrome version depends on various
      system packages so one needss to have chromium installed anyway.
      
      This means developers that want to work on tests need firefox and chdomium installed.
      
      Sadly I couldn't find a way to make browsers optional in case the developer
      only has one installed.
    karma.common.conf.js 700 B
    module.exports = function(config) {
        config.set({
          basePath: 'dist',
          frameworks: ['mocha'],
          client: {
            mocha: {
              ui: 'tdd',
            },
          },
          files: [
            {pattern: './*.js', included: true, watched: true, served: true, type: 'module'},
            {pattern: './**/*', included: false, watched: true, served: true},
          ],
          autoWatch: true,
          browsers: [
            'ChromiumHeadlessNoSandbox',
            'FirefoxHeadless',
          ],
          customLaunchers: {
            ChromiumHeadlessNoSandbox: {
              base: 'ChromiumHeadless',
              flags: ['--no-sandbox']
            }
          },
          singleRun: false,
          logLevel: config.LOG_ERROR
        });
    }