5 Star 10 Fork 7

Gitee 极速下载/polar-bookshelf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/burtonator/polar-bookshelf
克隆/下载
karma.conf.js 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
Kevin Burton 提交于 2021-05-18 12:52 . ....
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",
},
});
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/polar-bookshelf.git
git@gitee.com:mirrors/polar-bookshelf.git
mirrors
polar-bookshelf
polar-bookshelf
master

搜索帮助