@untestutils/playwright 0.5.0 → 0.5.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/dist/harness.d.mts +19 -0
- package/dist/harness.d.ts +2 -1
- package/dist/harness.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +16 -16
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { test as base } from "@playwright/test";
|
|
2
|
+
import { type Recipe } from "@untestutils/core";
|
|
3
|
+
/**
|
|
4
|
+
* Prepare (or reuse) the harness and ensure `UNTESTUTILS_HOST_*` is set in
|
|
5
|
+
* *this* worker process. Cross-process reuse only writes `targets.json`;
|
|
6
|
+
* workers must apply env locally before reading `baseURL`.
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolvePlaywrightHarnessId(harness: string | Recipe): Promise<string>;
|
|
9
|
+
export declare function resolvePlaywrightBaseURL(harnessId: string): string;
|
|
10
|
+
export declare function usePlaywrightHarnessId(harness: string | Recipe, use: (id: string) => Promise<void>): Promise<void>;
|
|
11
|
+
type TestFixtures = {
|
|
12
|
+
baseURL: string;
|
|
13
|
+
};
|
|
14
|
+
type WorkerFixtures = {
|
|
15
|
+
harness: string | Recipe;
|
|
16
|
+
harnessId: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const test: ReturnType<typeof base.extend<TestFixtures, WorkerFixtures>>;
|
|
19
|
+
export {};
|
package/dist/harness.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { test as base } from '@playwright/test';
|
|
1
2
|
import { type Recipe } from '@untestutils/core';
|
|
2
3
|
/**
|
|
3
4
|
* Prepare (or reuse) the harness and ensure `UNTESTUTILS_HOST_*` is set in
|
|
@@ -14,6 +15,6 @@ type WorkerFixtures = {
|
|
|
14
15
|
harness: string | Recipe;
|
|
15
16
|
harnessId: string;
|
|
16
17
|
};
|
|
17
|
-
export declare const test:
|
|
18
|
+
export declare const test: ReturnType<typeof base.extend<TestFixtures, WorkerFixtures>>;
|
|
18
19
|
export {};
|
|
19
20
|
//# sourceMappingURL=harness.d.ts.map
|
package/dist/harness.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../src/harness.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../src/harness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAOL,KAAK,MAAM,EACZ,MAAM,mBAAmB,CAAC;AAE3B;;;;GAIG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAgB1F;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAKlE;AAED,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,MAAM,GAAG,MAAM,EACxB,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GACjC,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,cAAc,CAAC,CAc5E,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,MAA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AG,QAAQ,CA8C1F;AAMD,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE;IAClC,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,aAAa,EAAE,OAAO,aAAa,CAAC;CAKrC,CAAC;AAEF,gBAAgB;AAChB,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,iBAAiB,GAAG,oBAAoB,GAAG,MAAM,CAsBjG;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CA8B3D;AAED,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAG9D;AAED,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,IAAI,GACL,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@untestutils/playwright",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"homepage": "https://s00d.github.io/untestutils/",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/s00d/untestutils.git",
|
|
9
|
+
"directory": "packages/playwright"
|
|
10
|
+
},
|
|
4
11
|
"files": [
|
|
5
12
|
"dist"
|
|
6
13
|
],
|
|
7
14
|
"type": "module",
|
|
8
15
|
"sideEffects": false,
|
|
16
|
+
"main": "./dist/index.mjs",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
9
18
|
"exports": {
|
|
10
19
|
".": {
|
|
11
20
|
"types": "./dist/index.d.ts",
|
|
@@ -24,16 +33,19 @@
|
|
|
24
33
|
},
|
|
25
34
|
"./package.json": "./package.json"
|
|
26
35
|
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
27
39
|
"dependencies": {
|
|
28
40
|
"pathe": "^2.0.3",
|
|
29
|
-
"@untestutils/core": "0.5.
|
|
41
|
+
"@untestutils/core": "0.5.1"
|
|
30
42
|
},
|
|
31
43
|
"devDependencies": {
|
|
32
44
|
"@playwright/test": "^1.63.0",
|
|
33
45
|
"@types/node": "^26.6.1",
|
|
46
|
+
"obuild": "^0.4.40",
|
|
34
47
|
"publint": "^0.3.24",
|
|
35
|
-
"typescript": "^6.0.3"
|
|
36
|
-
"obuild": "^0.4.40"
|
|
48
|
+
"typescript": "^6.0.3"
|
|
37
49
|
},
|
|
38
50
|
"peerDependencies": {
|
|
39
51
|
"@playwright/test": "^1.63.0"
|
|
@@ -41,18 +53,6 @@
|
|
|
41
53
|
"engines": {
|
|
42
54
|
"node": ">=20"
|
|
43
55
|
},
|
|
44
|
-
"license": "MIT",
|
|
45
|
-
"homepage": "https://s00d.github.io/untestutils/",
|
|
46
|
-
"repository": {
|
|
47
|
-
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/s00d/untestutils.git",
|
|
49
|
-
"directory": "packages/playwright"
|
|
50
|
-
},
|
|
51
|
-
"main": "./dist/index.mjs",
|
|
52
|
-
"types": "./dist/index.d.ts",
|
|
53
|
-
"publishConfig": {
|
|
54
|
-
"access": "public"
|
|
55
|
-
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "obuild && tsc -p tsconfig.build.json",
|
|
58
58
|
"publint": "publint --strict"
|