Skip to content
Snippets Groups Projects
Select Git revision
  • c408edab76a44a2a1e77d0170f61bfa9fa408e0f
  • 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.common.conf.js

Blame
  • karma.common.conf.js 766 B
    module.exports = function(config) {
        config.set({
          basePath: 'dist',
          frameworks: ['mocha'],
          client: {
            mocha: {
              ui: 'tdd',
              timeout: 2000 * (process.env.CI === undefined ? 1 : 10)
            },
          },
          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
        });
    }