UNPKG

@dbp-topics/signature

Version:

[GitLab Repository](https://gitlab.tugraz.at/dbp/esign/signature) | [npmjs package](https://www.npmjs.com/package/@dbp-topics/signature) | [Unpkg CDN](https://unpkg.com/browse/@dbp-topics/signature/) | [Esign Bundle](https://gitlab.tugraz.at/dbp/esign/dbp

33 lines (31 loc) 1.28 kB
module.exports = async function (config) { const {installBrowsersForNpmInstall, registry} = require('playwright-core/lib/server'); await installBrowsersForNpmInstall(['firefox', 'chromium']); process.env.FIREFOX_BIN = registry.findExecutable('firefox').executablePath(); process.env.CHROMIUM_BIN = registry.findExecutable('chromium').executablePath(); config.set({ basePath: 'dist', frameworks: ['mocha', 'source-map-support'], client: { mocha: { ui: 'tdd', timeout: 2000 * (process.env.CI === undefined ? 1 : 10), }, }, files: [ {pattern: './*.js', included: true, watched: true, served: true, type: 'module'}, // XXX: nocache is required or karma serves garbage binary data for some reason {pattern: './**/*', included: false, watched: true, served: true, nocache: true}, ], autoWatch: true, browsers: ['ChromiumHeadlessNoSandbox', 'FirefoxHeadless'], customLaunchers: { ChromiumHeadlessNoSandbox: { base: 'ChromiumHeadless', flags: ['--no-sandbox'], }, }, singleRun: false, logLevel: config.LOG_ERROR, }); };