epubavocado
Version:
I am an EPUB object model aspiring to be standards compliant.
41 lines (39 loc) • 1.02 kB
JavaScript
// eslint-disable-next-line @typescript-eslint/no-var-requires
process.env.CHROME_BIN = require('puppeteer').executablePath()
module.exports = function (config) {
config.set({
singleRun: true,
frameworks: ['jasmine', 'karma-typescript'],
files: [
'src/**/*.ts',
'test/__browser__/**/*.ts',
{
pattern: 'test/data/**/*',
watched: false,
included: false,
served: true,
nocache: false,
},
],
preprocessors: {
'**/*.ts': 'karma-typescript',
},
reporters: ['progress', 'karma-typescript'],
browsers: ['ChromeHeadless'],
karmaTypescriptConfig: {
coverageOptions: {
instrumentation: false,
},
compilerOptions: {
target: 'es5',
module: 'CommonJS',
moduleResolution: 'node',
strict: true,
esModuleInterop: true,
skipLibCheck: true,
forceConsistentCasingInFileNames: true,
},
include: ['src/', 'test/__browser__/'],
},
})
}