vue2/test/unit/index.js

13 lines
348 B
JavaScript
Raw Normal View History

2016-04-26 01:17:59 +08:00
import Vue from 'vue'
// ignore whitespace in tests
2016-04-26 01:17:59 +08:00
Vue.config.preserveWhitespace = false
// import all helpers
const helpersContext = require.context('../helpers', true)
helpersContext.keys().forEach(helpersContext)
2016-04-24 08:00:38 +08:00
// require all test files
const testsContext = require.context('./', true, /\.spec$/)
2016-04-24 08:00:38 +08:00
testsContext.keys().forEach(testsContext)