browser-ava 1.0.0 → 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 +2 -1
- package/src/browser-ava-cli.mjs +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-ava",
|
|
3
|
-
"version": "1.0.
|
|
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",
|
package/src/browser-ava-cli.mjs
CHANGED
|
@@ -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,7 +69,7 @@ program
|
|
|
68
69
|
|
|
69
70
|
await init;
|
|
70
71
|
|
|
71
|
-
tests = tests.map(file => {
|
|
72
|
+
tests = (await globby(tests)).map(file => {
|
|
72
73
|
return { url: resolve(process.cwd(), file), file };
|
|
73
74
|
});
|
|
74
75
|
|
|
@@ -134,7 +135,6 @@ program
|
|
|
134
135
|
|
|
135
136
|
program.parse(process.argv);
|
|
136
137
|
|
|
137
|
-
|
|
138
138
|
async function loadAndRewriteImports(file) {
|
|
139
139
|
let body = await readFile(file, utf8EncodingOptions);
|
|
140
140
|
|