index.js 523 B

12345678910111213
  1. import Vue from 'vue'
  2. Vue.config.devtools = false
  3. Vue.config.productionTip = false
  4. // require all test files (files that ends with .spec.js)
  5. const testsContext = require.context('./specs', true, /\.spec$/)
  6. testsContext.keys().forEach(testsContext)
  7. // require all src files except main.js for coverage.
  8. // you can also change this to match only the subset of files that
  9. // you want coverage for.
  10. const srcContext = require.context('../../src/renderer', true, /^\.\/(?!main(\.js)?$)/)
  11. srcContext.keys().forEach(srcContext)