您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

karma.conf.js 395 B

1234567891011121314
  1. module.exports = (config) => {
  2. config.set({
  3. basePath: "..",
  4. frameworks: ["mocha", "browserify"],
  5. plugins: ["karma-mocha", "karma-browserify", "karma-chrome-launcher"],
  6. files: ["src/index.js", "test/**/*.js"],
  7. preprocessors: {
  8. "src/index.js": ["browserify"],
  9. "test/**/*.js": ["browserify"],
  10. },
  11. browsers: ["ChromeHeadless"],
  12. singleRun: true,
  13. });
  14. };