Skip to content

Commit 665bdef

Browse files
committed
Fix default glob to only match .js files
1 parent 85c6cc8 commit 665bdef

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Run language tests in the default runner (Node):
1616

1717
Using -T, collateral paths are relative to the test262 root directory:
1818

19-
`> test262-harness -T ~/test262 language/**/*`
19+
`> test262-harness -T ~/test262 language/**/*.js`
2020

21-
When a glob matches a directory, the default behavior will run all files under it recursively:
21+
When a glob matches a directory, the default behavior will run all .js files under it recursively:
2222

2323
`> test262-harness -T ~/test262 language`
2424

bin/run.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function getFilesStream(config) {
277277

278278
// by default, run all files recursively when we pass test262Dir
279279
if(config.test262Dir && files.length === 0) {
280-
files = ['**/*']
280+
files = ['**/*.js']
281281
}
282282

283283
files = files.map(function(p) {
@@ -286,7 +286,7 @@ function getFilesStream(config) {
286286
}
287287

288288
if(fs.existsSync(p) && fs.statSync(p).isDirectory()) {
289-
p = path.join(p, '**/*');
289+
p = path.join(p, '**/*.js');
290290
}
291291

292292
return p;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "test262-harness",
33
"repository": "bterlson/test262-harness",
4-
"version": "1.5.0",
4+
"version": "1.5.1",
55
"description": "Node-based harness for test262",
66
"main": "index.js",
77
"bin": {

0 commit comments

Comments
 (0)