Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"text/x-typescript": ["ts", "tsx"],
},
port: KARMA_SERVER_PORT,
preprocessors: {
[path.join(dirname, "test/**/*.ts")]: ["sourcemap"],
[path.join(dirname, "test/index.ts")]: ["webpack", "sourcemap"],
},
// define where to save final remapped coverage reports
remapCoverageReporter: {
'text-summary': null,
html: './coverage/html',
cobertura: './coverage/cobertura.xml'
},
reporters: ["mocha"],
singleRun: true,
webpack: webpackBuildScripts.karmaConfig,
webpackMiddleware: {
noInfo: true,
stats: {
children: false,
chunks: false,
},
},
};
// enable JUnit reporter only if env variable is set (such as on Circle)
if (process.env.JUNIT_REPORT_PATH) {
const outputDir = path.join(
__dirname,
"../..",
process.env.JUNIT_REPORT_PATH,
path.basename(dirname),