mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
unit test init
This commit is contained in:
11
test/unit/index.js
Normal file
11
test/unit/index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
require('packages/zanui-css/src/index.css');
|
||||
|
||||
// require all test files (files that ends with .spec.js)
|
||||
const testsReq = require.context('./specs', true, /\.spec$/);
|
||||
testsReq.keys().forEach(testsReq);
|
||||
|
||||
// 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 srcReq = require.context('../../src', true, /^\.\/(?!main(\.js)?$)/);
|
||||
srcReq.keys().forEach(srcReq);
|
Reference in New Issue
Block a user