Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54a6457

Browse files
committed
Support filter for tests to run
1 parent b68c6ff commit 54a6457

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/run.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
require('urun')(__dirname)
1+
var options = {};
2+
3+
if (process.env.filter) {
4+
options.include = new RegExp(process.env.filter + '.*\\.js$');
5+
}
6+
7+
require('urun')(__dirname, options);

0 commit comments

Comments
 (0)