index.js 487 B

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