代码拉取完成,页面将自动刷新
const webpackConfig = require("./webpack.config");
// if (process.env.CIRCLECI === 'true') {
// console.log("Setting up CHROME_BIN for circleci");
// process.env.CHROME_BIN = require('puppeteer').executablePath();
// }
// TODO: do not run the karma-typescript directly.
// instead run npx tsc --watch and then have these run under chrome so I can
// watch the output.
//
module.exports = (config) => {
config.set({
// ... normal karma configuration
// browsers: ['Chrome'],
browsers: ['ChromeHeadless'],
// make sure to include webpack as a framework
frameworks: ['mocha', 'webpack'],
plugins: [
'karma-chrome-launcher',
'karma-webpack',
'karma-mocha',
],
files: [
// { pattern: 'web/js/**/*Test.ts', watched: false },
// { pattern: 'apps/**/*Test.ts', watched: false },
{ pattern: 'web/**/*Karma.ts', watched: false },
],
preprocessors: {
// add webpack as preprocessor
'apps/**/*.ts': ['webpack'],
'web/**/*.ts': ['webpack'],
},
singleRun: true,
webpack: {
// karma watches the test entry points
// Do NOT specify the entry option
// webpack watches dependencies
// webpack configuration
...webpackConfig,
entry: undefined,
devtool: "eval",
},
});
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。