Skip to content

Commit

Permalink
使用webpack 的 require.context 特性执行所有的spec.js文件
Browse files Browse the repository at this point in the history
  • Loading branch information
buzhou committed Oct 30, 2017
1 parent 6dba70d commit 8a87618
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
* only require other specs here
*/

import spec from './Popover.spec';
const req = require.context('.', false, /\.spec\.js$/);
req.keys().forEach(req);

0 comments on commit 8a87618

Please sign in to comment.