browser-ava 2.2.33 → 2.2.35
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 +10 -10
- package/src/browser/ava.mjs +1 -1
- package/src/browser/runtime.mjs +4 -1
- package/src/resolver.mjs +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-ava",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.35",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"prepare": "npx playwright install",
|
|
30
|
-
"test": "
|
|
30
|
+
"test": "node --run test:ava",
|
|
31
31
|
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
32
32
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
33
33
|
"docs": "documentation readme --section=API ./src/**/*.mjs",
|
|
34
|
-
"lint": "
|
|
34
|
+
"lint": "node --run lint:docs",
|
|
35
35
|
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
"globby": "^14.0.2",
|
|
43
43
|
"koa": "^2.15.3",
|
|
44
44
|
"koa-static": "^5.0.0",
|
|
45
|
-
"playwright": "^1.48.
|
|
45
|
+
"playwright": "^1.48.2",
|
|
46
46
|
"ws": "^8.18.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/node": "^22.
|
|
50
|
-
"ava": "^6.
|
|
49
|
+
"@types/node": "^22.8.4",
|
|
50
|
+
"ava": "^6.2.0",
|
|
51
51
|
"c8": "^10.1.2",
|
|
52
52
|
"documentation": "^14.0.3",
|
|
53
|
-
"execa": "^9.
|
|
54
|
-
"semantic-release": "^24.
|
|
53
|
+
"execa": "^9.5.1",
|
|
54
|
+
"semantic-release": "^24.2.0"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
|
-
"node": ">=22.
|
|
58
|
-
"bun": ">=1.
|
|
57
|
+
"node": ">=22.10.0",
|
|
58
|
+
"bun": ">=1.1"
|
|
59
59
|
},
|
|
60
60
|
"repository": {
|
|
61
61
|
"type": "git",
|
package/src/browser/ava.mjs
CHANGED
package/src/browser/runtime.mjs
CHANGED
|
@@ -10,6 +10,9 @@ import { isEqual } from "./eql.mjs";
|
|
|
10
10
|
let ws = new WebSocket(`ws://${location.host}`);
|
|
11
11
|
ws.onerror = console.error;
|
|
12
12
|
|
|
13
|
+
ArrayBuffer.prototype.toJSON = function () {
|
|
14
|
+
return this.toString();
|
|
15
|
+
};
|
|
13
16
|
BigInt.prototype.toJSON = function () {
|
|
14
17
|
return this.toString();
|
|
15
18
|
};
|
|
@@ -141,7 +144,7 @@ async function execHooks(hooks, t) {
|
|
|
141
144
|
}
|
|
142
145
|
|
|
143
146
|
async function runTest(parent, tm, testInstance) {
|
|
144
|
-
|
|
147
|
+
test.meta.file = tm.file;
|
|
145
148
|
|
|
146
149
|
if (!testInstance.skip && !testInstance.todo) {
|
|
147
150
|
const t = testContext(testInstance, parent);
|
package/src/resolver.mjs
CHANGED
|
@@ -2,10 +2,9 @@ import { join, dirname, resolve } from "node:path";
|
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @type {
|
|
6
|
-
* @property {BufferEncoding} encoding
|
|
5
|
+
* @type {BufferEncoding} encoding
|
|
7
6
|
*/
|
|
8
|
-
export const utf8EncodingOptions =
|
|
7
|
+
export const utf8EncodingOptions = "utf8" ;
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* Order in which imports are searched
|