Skip to content
Snippets Groups Projects
Select Git revision
  • 4aa867613864ed83602b68d393160923a3226bc7
  • main default protected
  • renovate/lock-file-maintenance
  • demo protected
  • person-select-custom
  • dbp-translation-component
  • icon-set-mapping
  • port-i18next-parser
  • remove-sentry
  • favorites-and-recent-files
  • revert-6c632dc6
  • lit2
  • advertisement
  • wc-part
  • automagic
  • publish
  • wip-cleanup
  • demo-file-handling
18 results

karma.conf.js

Blame
  • karma.conf.js 674 B
    // Trick to use the auto-downloaded puppeteer chrome binary
    process.env.CHROME_BIN = require('puppeteer').executablePath();
    
    module.exports = function(config) {
      config.set({
        basePath: 'dist',
        frameworks: ['mocha', 'chai'],
        files: [
          {pattern: './*.js', included: true, watched: true, served: true, type: 'module'},
          {pattern: './**/*', included: false, watched: true, served: true},
        ],
        autoWatch: true,
        browsers: ['ChromeHeadlessNoSandbox'],
        customLaunchers: {
          ChromeHeadlessNoSandbox: {
            base: 'ChromeHeadless',
            flags: ['--no-sandbox']
          }
        },
        singleRun: false,
        logLevel: config.LOG_ERROR
      });
    }