browser-ava 1.0.1 → 1.0.2

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.1",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,6 +29,7 @@
29
29
  "dependencies": {
30
30
  "commander": "^9.4.1",
31
31
  "es-module-lexer": "^1.0.5",
32
+ "globby": "^13.1.2",
32
33
  "koa": "^2.13.4",
33
34
  "koa-static": "^5.0.0",
34
35
  "playwright": "^1.27.1",
@@ -10,6 +10,7 @@ import { WebSocketServer } from "ws";
10
10
  import { program, Option } from "commander";
11
11
  import { calculateSummary, summaryMessages } from "./browser/util.mjs";
12
12
  import { resolveImport } from "./resolver.mjs";
13
+ import { globby } from "globby";
13
14
 
14
15
  const utf8EncodingOptions = { encoding: "utf8" };
15
16
 
@@ -68,13 +69,9 @@ program
68
69
 
69
70
  await init;
70
71
 
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
- });
72
+ tests = (await globby(tests)).map(file => {
73
+ return { url: resolve(process.cwd(), file), file };
74
+ });
78
75
 
79
76
  const { server, wss } = await createServer(tests, options);
80
77