Blame view

node_modules/better-scroll/test/unit/index.js 393 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
8
9
  // require all test files
  const testsContext = require.context('./specs', true, /.*/)
  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.
  const srcContext = require.context('../../src', true, /^\.\/(?!main(\.js)?$)/)
  srcContext.keys().forEach(srcContext)