Open ZoeyYoung opened 8 years ago
files: [
'./node_modules/babel-polyfill/dist/polyfill.min.js',
{
pattern: 'tests.webpack.js',
watched: false
}
],
https://dimchez.com/blog/using-babel-polyfill-with-karma-webpack-and-es6/
安装
npm install karma-cli -g
通常需要安装四种类型的插件
phantomjs-prebuilt?
配置
两个文件:
配置文件参考 react-karma-babel-webpack-code-coverage
How to implement testing + code coverage on React with Karma, Babel, and Webpack
Configuration File 文档