naive-ui/test/unit/index.js

3 lines
169 B
JavaScript
Raw Normal View History

2019-05-24 14:41:33 +08:00
// require all test files (files that ends with .spec.js)
2019-06-03 23:42:44 +08:00
const testsContext = require.context('./specs', true, /\.spec.js$/);
2019-05-24 14:41:33 +08:00
testsContext.keys().forEach(testsContext);