@genesislcap/foundation-testing 15.6.2 → 15.7.0-ts7.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/cjs/playwright/test.js +2 -34
- package/dist/cjs/tsm/index.js +1 -0
- package/dist/dts/playwright/setup.d.ts.map +1 -1
- package/dist/dts/playwright/test.d.ts +1 -1
- package/dist/dts/playwright/test.d.ts.map +1 -1
- package/dist/dts/playwright-bdd/index.d.ts +3 -3
- package/dist/dts/playwright-bdd/index.d.ts.map +1 -1
- package/dist/dts/tsm/index.d.ts.map +1 -1
- package/dist/dts/utils/promise.d.ts.map +1 -1
- package/dist/dts/utils/types.d.ts +1 -1
- package/dist/dts/utils/types.d.ts.map +1 -1
- package/dist/dts/uvu/uvu.d.ts.map +1 -1
- package/dist/esm/tsm/index.js +1 -0
- package/dist/foundation-testing.api.json +1 -1
- package/dist/foundation-testing.d.ts +3 -3
- package/package.json +4 -3
|
@@ -1,39 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.test = exports.defaultAuditThresholds = exports.defaultPackageConfig = exports.DEFAULT_PORT = exports.playAudit = exports.base = exports.expect = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
37
5
|
const test_1 = require("@playwright/test");
|
|
38
6
|
const portfinder_sync_1 = require("portfinder-sync");
|
|
39
7
|
var test_2 = require("@playwright/test");
|
|
@@ -47,7 +15,7 @@ Object.defineProperty(exports, "base", { enumerable: true, get: function () { re
|
|
|
47
15
|
* @public
|
|
48
16
|
*/
|
|
49
17
|
const playAudit = async (playwrightLHConfiguration) => {
|
|
50
|
-
const { playAudit: lighthousePlayAudit } = await Promise.resolve().then(() => __importStar(require('playwright-lighthouse')));
|
|
18
|
+
const { playAudit: lighthousePlayAudit } = await Promise.resolve().then(() => tslib_1.__importStar(require('playwright-lighthouse')));
|
|
51
19
|
return lighthousePlayAudit(playwrightLHConfiguration);
|
|
52
20
|
};
|
|
53
21
|
exports.playAudit = playAudit;
|
package/dist/cjs/tsm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/playwright/setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAe,KAAK,CAAC,MAAM,EAAE,UAAU,gCAEtC;
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/playwright/setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAe,KAAK,CAAC,MAAM,EAAE,UAAU,gCAEtC;eAEc,KAAK"}
|
|
@@ -53,5 +53,5 @@ export type WorkerFixture = {
|
|
|
53
53
|
* This is just an example playwright test fixture stub. In reality, you will likely create a custom
|
|
54
54
|
* fixture for your e2e tests depending on the needs of your app or micro frontend.
|
|
55
55
|
*/
|
|
56
|
-
export declare const test: import("
|
|
56
|
+
export declare const test: import("playwright/test").TestType<import("playwright/test").PlaywrightTestArgs & import("playwright/test").PlaywrightTestOptions, import("playwright/test").PlaywrightWorkerArgs & import("playwright/test").PlaywrightWorkerOptions & WorkerFixture>;
|
|
57
57
|
//# sourceMappingURL=test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../src/playwright/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAGxE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChD,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7D;;;;;GAKG;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,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,IAAI,wPAmBf,CAAC"}
|
|
@@ -4,9 +4,9 @@ export { PlaywrightBDD };
|
|
|
4
4
|
* Playwright BDD test
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare const test: import("
|
|
7
|
+
export declare const test: import("playwright/test").TestType<import("playwright/test").PlaywrightTestArgs & import("playwright/test").PlaywrightTestOptions & PlaywrightBDD.BddTestFixtures, import("playwright/test").PlaywrightWorkerArgs & import("playwright/test").PlaywrightWorkerOptions & PlaywrightBDD.BddWorkerFixtures>;
|
|
8
8
|
export declare const testConfig: {
|
|
9
|
-
config: (import("../playwright
|
|
9
|
+
config: (import("../playwright").PackageConfig | {
|
|
10
10
|
option: boolean;
|
|
11
11
|
scope: string;
|
|
12
12
|
timeout: number;
|
|
@@ -21,7 +21,7 @@ export declare const testConfig: {
|
|
|
21
21
|
}, use: any) => Promise<void>) | {
|
|
22
22
|
scope: string;
|
|
23
23
|
})[];
|
|
24
|
-
audit: (import("../playwright
|
|
24
|
+
audit: (import("../playwright").AuditThresholds | {
|
|
25
25
|
option: boolean;
|
|
26
26
|
scope: string;
|
|
27
27
|
})[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/playwright-bdd/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,gBAAgB,CAAC;AAIhD,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB;;;GAGG;AACH,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/playwright-bdd/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,gBAAgB,CAAC;AAIhD,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB;;;GAGG;AACH,eAAO,MAAM,IAAI,0SAAqB,CAAC;AAEvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;CAmBtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tsm/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tsm/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,MAAM;IACV,MAAM;QACJ,MAAM;;IAER,MAAM;QACJ,MAAM;;IAER,MAAM;QACJ,MAAM;;IAER,MAAM;QACJ,MAAM;;CAET,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../../../src/utils/promise.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../../../src/utils/promise.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,WAChB,OAAO,aAAY,MAAM,2BAMjC,CAAC"}
|
|
@@ -7,5 +7,5 @@ export type Expect<T extends true> = T;
|
|
|
7
7
|
* Expects that the type parameter X is equal to Y, returning true or false
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
|
|
10
|
+
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => (T extends Y ? 1 : 2) ? true : false;
|
|
11
11
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC;AAEvC;;;GAGG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,IACpB,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC;AAEvC;;;GAGG;AACH,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,IACpB,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,QAAO,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uvu.d.ts","sourceRoot":"","sources":["../../../src/uvu/uvu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,YAAY,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"uvu.d.ts","sourceRoot":"","sources":["../../../src/uvu/uvu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,YAAY,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,QAAA,MAAM,OAAO,aAAc,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,aAAY,MAAM,mCAY1E,CAAC;AAEF;;;GAGG;AACH,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC"}
|
package/dist/esm/tsm/index.js
CHANGED
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
},
|
|
686
686
|
{
|
|
687
687
|
"kind": "Content",
|
|
688
|
-
"text": "(<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false"
|
|
688
|
+
"text": "(<T>() => T extends X ? 1 : 2) extends <T>() => (T extends Y ? 1 : 2) ? true : false"
|
|
689
689
|
},
|
|
690
690
|
{
|
|
691
691
|
"kind": "Content",
|
|
@@ -12,7 +12,7 @@ import { Registration } from '@microsoft/fast-foundation';
|
|
|
12
12
|
import { default as sinon_2 } from 'sinon';
|
|
13
13
|
import { default as sinon_3 } from 'sinon';
|
|
14
14
|
import { suite } from 'uvu';
|
|
15
|
-
import { test
|
|
15
|
+
import { test } from 'uvu';
|
|
16
16
|
import { uvu } from 'uvu';
|
|
17
17
|
import { ViewTemplate } from '@microsoft/fast-element';
|
|
18
18
|
|
|
@@ -158,7 +158,7 @@ export declare type ElementGetter = () => FoundationElementRegistry<FoundationEl
|
|
|
158
158
|
* Expects that the type parameter X is equal to Y, returning true or false
|
|
159
159
|
* @public
|
|
160
160
|
*/
|
|
161
|
-
export declare type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
|
|
161
|
+
export declare type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => (T extends Y ? 1 : 2) ? true : false;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* Expects that the type parameter T resolves to true, or will be a typescript error
|
|
@@ -352,7 +352,7 @@ export { suite }
|
|
|
352
352
|
*/
|
|
353
353
|
export declare type SuiteCallback<T> = uvu.Callback<ComponentContext<T>>;
|
|
354
354
|
|
|
355
|
-
export {
|
|
355
|
+
export { test }
|
|
356
356
|
|
|
357
357
|
/**
|
|
358
358
|
* Decorator: Used on a test harness class based on a `FoundationElement` to give it extra functionality
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-testing",
|
|
3
3
|
"description": "Genesis Foundation Testing",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.7.0-ts7.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -75,12 +75,13 @@
|
|
|
75
75
|
"tsx": "^4.7.0"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@genesislcap/foundation-logger": "15.
|
|
78
|
+
"@genesislcap/foundation-logger": "15.7.0-ts7.1",
|
|
79
79
|
"@microsoft/fast-element": "1.14.0",
|
|
80
80
|
"@microsoft/fast-foundation": "2.50.0",
|
|
81
81
|
"@playwright/test": "^1.54.2",
|
|
82
82
|
"jsdom": "^26.1.0",
|
|
83
83
|
"lighthouse": "^12.8.1",
|
|
84
|
+
"playwright": "^1.54.2",
|
|
84
85
|
"playwright-bdd": "^8.3.1",
|
|
85
86
|
"playwright-lighthouse": "^4.0.0",
|
|
86
87
|
"portfinder-sync": "^0.0.2",
|
|
@@ -95,5 +96,5 @@
|
|
|
95
96
|
"publishConfig": {
|
|
96
97
|
"access": "public"
|
|
97
98
|
},
|
|
98
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "cbdc6ec8914b5a75c30535e4bd15b11aff6c96fd"
|
|
99
100
|
}
|