configure karma to use chromium
This commit is contained in:
Родитель
19f4ea4bd0
Коммит
7012a57964
|
@ -1,15 +1,17 @@
|
|||
process.env.CHROME_BIN = require('chromium').path
|
||||
|
||||
module.exports = function (config) {
|
||||
config.set({
|
||||
frameworks: ['mocha', 'chai'],
|
||||
files: [
|
||||
{pattern: 'dist/index.js', type: 'module'},
|
||||
{pattern: 'test/test.js', type: 'module'}
|
||||
{ pattern: 'dist/index.js', type: 'module' },
|
||||
{ pattern: 'test/test.js', type: 'module' }
|
||||
],
|
||||
reporters: ['mocha'],
|
||||
port: 9876,
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
browsers: ['ChromeHeadless', 'FirefoxHeadless'],
|
||||
browsers: ['ChromeHeadless'],
|
||||
autoWatch: false,
|
||||
singleRun: true,
|
||||
concurrency: Infinity
|
||||
|
|
Загрузка…
Ссылка в новой задаче