1 Star 0 Fork 1

木森/cropperjs

forked from Oyxing/cropperjs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
karma.conf.js 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
Chen Fengyuan 提交于 2019-10-26 15:49 . build: move to root
const puppeteer = require('puppeteer');
const rollupConfig = require('./rollup.config');
process.env.CHROME_BIN = puppeteer.executablePath();
process.env.NODE_ENV = 'test';
module.exports = (config) => {
config.set({
autoWatch: false,
browsers: ['ChromeHeadless'],
client: {
mocha: {
timeout: 10000,
},
},
coverageIstanbulReporter: {
reports: ['html', 'lcovonly', 'text-summary'],
},
files: [
'src/index.js',
'dist/cropper.css',
'test/helpers.js',
'test/specs/**/*.spec.js',
{
pattern: 'docs/images/*',
included: false,
},
],
frameworks: ['mocha', 'chai'],
preprocessors: {
'src/index.js': ['rollup'],
'test/helpers.js': ['rollup'],
'test/specs/**/*.spec.js': ['rollup'],
},
reporters: ['mocha', 'coverage-istanbul'],
rollupPreprocessor: {
plugins: rollupConfig.plugins,
output: {
format: 'iife',
name: 'Cropper',
sourcemap: 'inline',
},
},
singleRun: true,
});
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/musenlinlin/cropperjs.git
git@gitee.com:musenlinlin/cropperjs.git
musenlinlin
cropperjs
cropperjs
master

搜索帮助