@genesislcap/foundation-testing 14.303.0 → 14.303.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 +3 -3
- package/docs/api-report.md +0 -143
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-testing",
|
|
3
3
|
"description": "Genesis Foundation Testing",
|
|
4
|
-
"version": "14.303.
|
|
4
|
+
"version": "14.303.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"tsx": "^4.7.0"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@genesislcap/foundation-logger": "14.303.
|
|
78
|
+
"@genesislcap/foundation-logger": "14.303.2",
|
|
79
79
|
"@microsoft/fast-element": "1.14.0",
|
|
80
80
|
"@microsoft/fast-foundation": "2.49.6",
|
|
81
81
|
"@playwright/test": "^1.46.1",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"publishConfig": {
|
|
97
97
|
"access": "public"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "f556f123bafe956a7ba9328bb3f78f4d7d2495ba"
|
|
100
100
|
}
|
package/docs/api-report.md
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
## API Report File for "@genesislcap/foundation-testing"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import * as assert from 'uvu/assert';
|
|
8
|
-
import { Constructable } from '@microsoft/fast-element';
|
|
9
|
-
import { Container } from '@microsoft/fast-foundation';
|
|
10
|
-
import { DesignSystem } from '@microsoft/fast-foundation';
|
|
11
|
-
import { ExecutionContext } from '@microsoft/fast-element';
|
|
12
|
-
import type { FoundationElement } from '@microsoft/fast-foundation';
|
|
13
|
-
import { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
14
|
-
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
|
15
|
-
import { HTMLView } from '@microsoft/fast-element';
|
|
16
|
-
import { Logger } from '@genesislcap/foundation-logger';
|
|
17
|
-
import { Registration } from '@microsoft/fast-foundation';
|
|
18
|
-
import { default as sinon_2 } from 'sinon';
|
|
19
|
-
import { default as sinon_3 } from 'sinon';
|
|
20
|
-
import { suite } from 'uvu';
|
|
21
|
-
import { test } from 'uvu';
|
|
22
|
-
import { uvu } from 'uvu';
|
|
23
|
-
import { ViewTemplate } from '@microsoft/fast-element';
|
|
24
|
-
|
|
25
|
-
export { assert }
|
|
26
|
-
|
|
27
|
-
// @public
|
|
28
|
-
export interface ComponentContext<TElement = HTMLElement> extends Pick<Fixture<TElement>, 'element' | 'disconnect'> {
|
|
29
|
-
// (undocumented)
|
|
30
|
-
container: Container;
|
|
31
|
-
// (undocumented)
|
|
32
|
-
designSystem: DesignSystem;
|
|
33
|
-
// (undocumented)
|
|
34
|
-
runCases: RunCases;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// @public
|
|
38
|
-
export function createComponentSuite<TElement = HTMLElement>(title: string, elementNameOrGetter: string | ElementGetter, context?: ComponentContext<TElement>, registrations?: Registration<any>[]): uvu.Test<ComponentContext<TElement>>;
|
|
39
|
-
|
|
40
|
-
// @public
|
|
41
|
-
export function createLogicSuite<TContext = LogicContext>(title: string, context?: TContext): uvu.Test<TContext>;
|
|
42
|
-
|
|
43
|
-
// @public
|
|
44
|
-
export const delayedResolve: (result: unknown, duration?: number) => () => Promise<unknown>;
|
|
45
|
-
|
|
46
|
-
// @public (undocumented)
|
|
47
|
-
export type ElementGetter = () => FoundationElementRegistry<FoundationElementDefinition, FoundationElement>;
|
|
48
|
-
|
|
49
|
-
// @public
|
|
50
|
-
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
|
|
51
|
-
|
|
52
|
-
// @public
|
|
53
|
-
export type Expect<T extends true> = T;
|
|
54
|
-
|
|
55
|
-
// @public
|
|
56
|
-
export type FilterConditionally<Source, Condition> = Pick<Source, {
|
|
57
|
-
[K in keyof Source]: Source[K] extends Condition ? K : never;
|
|
58
|
-
}[keyof Source]>;
|
|
59
|
-
|
|
60
|
-
// @public
|
|
61
|
-
export interface Fixture<TElement = HTMLElement> {
|
|
62
|
-
connect(): Promise<void>;
|
|
63
|
-
disconnect(): Promise<void>;
|
|
64
|
-
document: Document;
|
|
65
|
-
element: TElement;
|
|
66
|
-
parent: HTMLElement;
|
|
67
|
-
template: ViewTemplate;
|
|
68
|
-
view: HTMLView;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// @public
|
|
72
|
-
export function fixture<TElement = HTMLElement>(templateNameOrRegistry: ViewTemplate | string | FoundationElementRegistry<FoundationElementDefinition, Constructable<TElement>> | [
|
|
73
|
-
FoundationElementRegistry<FoundationElementDefinition, Constructable<TElement>>,
|
|
74
|
-
...FoundationElementRegistry<FoundationElementDefinition, Constructable>[]
|
|
75
|
-
], options?: FixtureOptions): Promise<Fixture<TElement>>;
|
|
76
|
-
|
|
77
|
-
// @public
|
|
78
|
-
export interface FixtureOptions {
|
|
79
|
-
context?: ExecutionContext;
|
|
80
|
-
designSystem?: DesignSystem;
|
|
81
|
-
document?: Document;
|
|
82
|
-
parent?: HTMLElement;
|
|
83
|
-
source?: any;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// @public
|
|
87
|
-
export const logger: Logger;
|
|
88
|
-
|
|
89
|
-
// @public
|
|
90
|
-
export interface LogicContext {
|
|
91
|
-
// (undocumented)
|
|
92
|
-
runCases?(fn: (value: any) => any, cases: [any, any, assert.Message?][]): void;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export { Registration }
|
|
96
|
-
|
|
97
|
-
// @public
|
|
98
|
-
export function resetTestHarness<T>(wrapper: WithTestHarness<T>): void;
|
|
99
|
-
|
|
100
|
-
// @public
|
|
101
|
-
export function restoreTestHarness<T>(wrapper: WithTestHarness<T>): void;
|
|
102
|
-
|
|
103
|
-
// @public (undocumented)
|
|
104
|
-
export type RunCases = (fn: (...args: unknown[]) => unknown, cases: [unknown[], unknown, string?][], assertion?: (...args: unknown[]) => void) => void;
|
|
105
|
-
|
|
106
|
-
// @public
|
|
107
|
-
export function runCases(fn: (...args: unknown[]) => unknown, cases: [unknown[], unknown, string?][], assertion?: (...args: unknown[]) => void): void;
|
|
108
|
-
|
|
109
|
-
export { sinon_2 as sinon }
|
|
110
|
-
|
|
111
|
-
// @public
|
|
112
|
-
export type SinonWrapper<T extends {
|
|
113
|
-
[K in keyof T]: (...args: any) => any;
|
|
114
|
-
}> = {
|
|
115
|
-
[K in keyof T]: sinon_3.SinonSpy<Parameters<T[K]>, ReturnType<T[K]>>;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
// @public
|
|
119
|
-
export type SpiedFunctions<T> = Omit<FilterConditionally<T, (...args: any[]) => any>, 'constructor'>;
|
|
120
|
-
|
|
121
|
-
export { suite }
|
|
122
|
-
|
|
123
|
-
// @public
|
|
124
|
-
export type SuiteCallback<T> = uvu.Callback<ComponentContext<T>>;
|
|
125
|
-
|
|
126
|
-
export { test }
|
|
127
|
-
|
|
128
|
-
// @public
|
|
129
|
-
export function testSpy(constructor: Function): void;
|
|
130
|
-
|
|
131
|
-
// @public
|
|
132
|
-
export const timeout: (callback: (context: any) => Promise<any>, duration?: number) => (context: any) => Promise<any>;
|
|
133
|
-
|
|
134
|
-
export { uvu }
|
|
135
|
-
|
|
136
|
-
// @public
|
|
137
|
-
export type WithTestHarness<T extends {
|
|
138
|
-
[k in keyof T]: any;
|
|
139
|
-
}> = T & SinonWrapper<SpiedFunctions<T>>;
|
|
140
|
-
|
|
141
|
-
// (No @packageDocumentation comment for this package)
|
|
142
|
-
|
|
143
|
-
```
|