index.js 612 B

12345678910111213141516
  1. import Vue from 'vue'
  2. Vue.config.productionTip = false
  3. // Polyfill fn.bind() for PhantomJS
  4. /* eslint-disable no-extend-native */
  5. Function.prototype.bind = require('function-bind')
  6. // require all test files (files that ends with .spec.js)
  7. const testsContext = require.context('./specs', true, /\.spec$/)
  8. testsContext.keys().forEach(testsContext)
  9. // require all src files except main.js for coverage.
  10. // you can also change this to match only the subset of files that
  11. // you want coverage for.
  12. const srcContext = require.context('../../src', true, /^\.\/(?!main(\.js)?$)/)
  13. srcContext.keys().forEach(srcContext)