UNPKG

yun-ui

Version:

Mobile UI Components Library for Vue.js by yunzhijia.

19 lines (15 loc) 761 B
// import all helpers const helpersContext = require.context('../helpers', true) helpersContext.keys().forEach(helpersContext) // Polyfill fn.bind() for PhantomJS /* eslint-disable no-extend-native */ Function.prototype.bind = require('function-bind') // require all test files (files that ends with .spec.js) const testsContext = require.context('./specs', true, /\.spec$/) testsContext.keys().forEach(testsContext) // require all src files except main.js for coverage. // you can also change this to match only the subset of files that // you want coverage for. // change regex to match only .vue and .js file const srcContext = require.context('../../packages', true, /^\.\/(\w+(\.[(js)|(vue)])$)/) srcContext.keys().forEach(srcContext)