browser-ava 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-ava",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -68,9 +68,13 @@ program
68
68
 
69
69
  await init;
70
70
 
71
- tests = tests.map(file => {
72
- return { url: resolve(process.cwd(), file), file };
73
- });
71
+ tests = tests
72
+ // do not try to load unexpanded files names
73
+ // do expansion here ?
74
+ .filter(file => !file.match(/[\*\?]/))
75
+ .map(file => {
76
+ return { url: resolve(process.cwd(), file), file };
77
+ });
74
78
 
75
79
  const { server, wss } = await createServer(tests, options);
76
80
 
@@ -134,7 +138,6 @@ program
134
138
 
135
139
  program.parse(process.argv);
136
140
 
137
-
138
141
  async function loadAndRewriteImports(file) {
139
142
  let body = await readFile(file, utf8EncodingOptions);
140
143