You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
934 B
33 lines
934 B
process.env.CHROME_BIN = require('puppeteer').executablePath(); |
|
|
|
module.exports = function(config) { |
|
config.set({ |
|
basePath: '', |
|
frameworks: ['mocha'], |
|
files: [ |
|
'dist/rendering.test.js', |
|
], |
|
preprocessors: { |
|
'**/*.js': ['sourcemap'] |
|
}, |
|
reporters: ['progress', 'coverage', 'mocha'], |
|
coverageReporter: { |
|
type: 'lcovonly', |
|
dir : 'coverage/', |
|
subdir: '.', |
|
file: 'lcov.info' |
|
}, |
|
port: 9876, |
|
colors: true, |
|
logLevel: config.LOG_INFO, |
|
autoWatch: false, |
|
browsers: ['ChromeHeadlessNoSandbox'], |
|
customLaunchers: { |
|
ChromeHeadlessNoSandbox: { |
|
base: 'ChromeHeadless', |
|
flags: ['--no-sandbox'] |
|
} |
|
}, |
|
singleRun: true // output all logs to stdout instead of click debug button |
|
}); |
|
};
|
|
|