configure karma to use chromium
This commit is contained in:
Родитель
ce118609b2
Коммит
2657329f28
|
@ -1,11 +1,11 @@
|
||||||
process.env.CHROME_BIN = require('playwright').chromium.executablePath()
|
process.env.CHROME_BIN = require('chromium').path
|
||||||
|
|
||||||
module.exports = function (config) {
|
module.exports = function (config) {
|
||||||
config.set({
|
config.set({
|
||||||
frameworks: ['mocha', 'chai'],
|
frameworks: ['mocha', 'chai'],
|
||||||
files: [
|
files: [
|
||||||
{pattern: 'dist/index.js', type: 'module'},
|
{ pattern: 'dist/index.js', type: 'module' },
|
||||||
{pattern: 'test/test.js', type: 'module'}
|
{ pattern: 'test/test.js', type: 'module' }
|
||||||
],
|
],
|
||||||
reporters: ['mocha'],
|
reporters: ['mocha'],
|
||||||
port: 9876,
|
port: 9876,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче