Ai
2 Star 0 Fork 0

mirrors_sourcegraph/codeintellify

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
karma.conf.ts 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
import { Config, ConfigOptions } from 'karma'
import webpackConfig from './webpack.test.config'
export default (config: Config): void => {
config.set({
frameworks: ['mocha', 'chai', 'sinon'],
files: [
{
pattern: 'src/**/*.ts',
watched: false,
included: true,
served: true,
},
],
preprocessors: {
'src/**/*.ts?(x)': ['webpack', 'sourcemap'],
},
// Ignore the npm package entry point
exclude: ['src/index.ts'],
// karma-webpack doesn't change the file extensions so we just need to tell karma what these extensions mean.
mime: {
'text/x-typescript': ['ts'],
},
webpack: webpackConfig,
webpackMiddleware: {
stats: 'errors-only',
bail: true,
},
browsers: ['Chrome', 'Firefox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
// CI runs as root so we need to disable sandbox
flags: ['--no-sandbox', '--disable-setuid-sandbox'],
},
},
reporters: ['mocha', 'coverage-istanbul'],
mochaReporter: {
showDiff: true,
},
client: {
mocha: {
timeout: 6000,
},
},
coverageIstanbulReporter: {
reports: ['json'],
fixWebpackSourcePaths: true,
},
} as ConfigOptions)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_sourcegraph/codeintellify.git
git@gitee.com:mirrors_sourcegraph/codeintellify.git
mirrors_sourcegraph
codeintellify
codeintellify
master

搜索帮助