2016-04-26 01:17:59 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
|
2016-05-28 07:16:14 +08:00
|
|
|
// ignore whitespace in tests
|
2016-04-26 01:17:59 +08:00
|
|
|
Vue.config.preserveWhitespace = false
|
|
|
|
|
|
2016-05-28 07:16:14 +08:00
|
|
|
// 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
|
2016-04-26 01:37:19 +08:00
|
|
|
const testsContext = require.context('./', true, /\.spec$/)
|
2016-04-24 08:00:38 +08:00
|
|
|
testsContext.keys().forEach(testsContext)
|