@solidnative-dev/testing 0.0.0-stage → 0.1.0-alpha.0

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.
@@ -0,0 +1,303 @@
1
+ import { type CommitPriority, type CommitSequence, type HostCapabilities, type HostCommit, type HostCommitResult, type HostLifecycleListener, type HostMutation, type HostProps, type HostValue, type NativeComponentDescriptor, type NativeEvent, type NativeEventListener, type NativeEventPriority, type NativeMeasurement, type NodeHandle, type NativeHost, type SurfaceId, type SurfaceOptions } from "@solidnative-dev/host-contract";
2
+ import { type NativeApplication, type NativeRootOptions } from "@solidnative-dev/renderer";
3
+ export interface InMemoryHostOptions {
4
+ readonly platform?: string;
5
+ readonly capabilities?: Partial<HostCapabilities>;
6
+ readonly descriptors?: readonly NativeComponentDescriptor[];
7
+ readonly clock?: () => number;
8
+ }
9
+ export interface InMemoryElementSnapshot {
10
+ readonly kind: "element";
11
+ readonly node: NodeHandle;
12
+ readonly component: string;
13
+ readonly props: HostProps;
14
+ readonly eventListeners: readonly string[];
15
+ readonly parent: NodeHandle | null;
16
+ readonly children: readonly NodeHandle[];
17
+ }
18
+ export interface InMemoryTextSnapshot {
19
+ readonly kind: "text";
20
+ readonly node: NodeHandle;
21
+ readonly text: string;
22
+ readonly parent: NodeHandle | null;
23
+ }
24
+ export type InMemoryNodeSnapshot = InMemoryElementSnapshot | InMemoryTextSnapshot;
25
+ export interface InMemorySurfaceSnapshot {
26
+ readonly id: SurfaceId;
27
+ readonly name: string;
28
+ readonly initialProps: HostProps;
29
+ readonly sequence: CommitSequence;
30
+ readonly nodes: readonly InMemoryNodeSnapshot[];
31
+ }
32
+ export interface InjectNativeEventOptions {
33
+ readonly surface: SurfaceId;
34
+ readonly target: NodeHandle;
35
+ readonly name: string;
36
+ readonly payload?: HostValue;
37
+ readonly observedSequence?: CommitSequence;
38
+ readonly timestamp?: number;
39
+ readonly priority?: NativeEventPriority;
40
+ readonly bubbles?: boolean;
41
+ readonly coalescible?: boolean;
42
+ }
43
+ /**
44
+ * A strict, deterministic implementation of the host contract for renderer tests.
45
+ * Commits are applied to a copy of the surface and become visible atomically.
46
+ */
47
+ export declare class InMemoryHost implements NativeHost {
48
+ #private;
49
+ readonly platform: string;
50
+ readonly capabilities: HostCapabilities;
51
+ constructor(options?: InMemoryHostOptions);
52
+ createSurface(options: SurfaceOptions): SurfaceId;
53
+ destroySurface(surface: SurfaceId): void;
54
+ allocateNode(surface: SurfaceId): NodeHandle;
55
+ commit(transaction: HostCommit): HostCommitResult;
56
+ measure(surface: SurfaceId, node: NodeHandle, afterSequence?: CommitSequence): NativeMeasurement;
57
+ subscribe(listener: NativeEventListener): () => void;
58
+ subscribeLifecycle(listener: HostLifecycleListener): () => void;
59
+ getComponentDescriptor(name: string): NativeComponentDescriptor | undefined;
60
+ get commits(): readonly HostCommit[];
61
+ hasSurface(surface: SurfaceId): boolean;
62
+ getSurfaceSnapshot(surface: SurfaceId): InMemorySurfaceSnapshot;
63
+ setMeasurement(surface: SurfaceId, node: NodeHandle, measurement: Omit<NativeMeasurement, "observedSequence"> & {
64
+ readonly observedSequence?: CommitSequence;
65
+ }): void;
66
+ injectEvent(options: InjectNativeEventOptions): NativeEvent;
67
+ }
68
+ export type NativeTestTextMatcher = string | RegExp;
69
+ export interface NativeTestRoleOptions {
70
+ readonly name?: NativeTestTextMatcher;
71
+ }
72
+ export interface NativeTestElement {
73
+ readonly host: InMemoryHost;
74
+ readonly surface: SurfaceId;
75
+ readonly node: NodeHandle;
76
+ readonly component: string;
77
+ readonly props: HostProps;
78
+ readonly eventListeners: readonly string[];
79
+ readonly parent: NodeHandle | null;
80
+ readonly children: readonly NodeHandle[];
81
+ readonly textContent: string;
82
+ }
83
+ export interface NativeTestEventOptions {
84
+ readonly observedSequence?: CommitSequence;
85
+ readonly timestamp?: number;
86
+ readonly priority?: NativeEventPriority;
87
+ readonly bubbles?: boolean;
88
+ readonly coalescible?: boolean;
89
+ }
90
+ export interface RenderNativeOptions {
91
+ /** Uses an existing deterministic host. Cannot be combined with hostOptions. */
92
+ readonly host?: InMemoryHost;
93
+ /** Configures the default host. Core component descriptors are installed unless replaced. */
94
+ readonly hostOptions?: InMemoryHostOptions;
95
+ readonly surface?: SurfaceOptions;
96
+ /** autoCommit is deliberately controlled by the test renderer. */
97
+ readonly rootOptions?: Omit<NativeRootOptions, "autoCommit" | "surface">;
98
+ }
99
+ export interface NativeTestDebugOptions {
100
+ /** Includes every transport prop as bounded, deterministic JSON. */
101
+ readonly includeProps?: boolean;
102
+ /** Maximum rendered tree depth. Defaults to 64 and cannot exceed 256. */
103
+ readonly maxDepth?: number;
104
+ /** Maximum rendered nodes. Defaults to 200 and cannot exceed 1,000. */
105
+ readonly maxNodes?: number;
106
+ }
107
+ export interface NativeTestCommitDebugOptions {
108
+ /** Includes text, prop, and command-argument values. Defaults to false. */
109
+ readonly includeValues?: boolean;
110
+ /** Maximum latest commits to render. Defaults to 20 and cannot exceed 100. */
111
+ readonly maxCommits?: number;
112
+ /** Maximum mutations across rendered commits. Defaults to 200; maximum 2,000. */
113
+ readonly maxMutations?: number;
114
+ }
115
+ export interface NativeTestWaitOptions {
116
+ /** Maximum polling time in milliseconds. Defaults to 1,000; maximum 60,000. */
117
+ readonly timeout?: number;
118
+ /** Delay between attempts in milliseconds. Defaults to 10; maximum 1,000. */
119
+ readonly interval?: number;
120
+ /** Cancels pending polling without disposing the rendered application. */
121
+ readonly signal?: AbortSignal;
122
+ }
123
+ export type NativeTestMutationType = HostMutation["type"];
124
+ export interface NativeTestCommitMatcher {
125
+ /** Matches commits strictly newer than this checkpoint. */
126
+ readonly afterSequence?: CommitSequence;
127
+ readonly sequence?: CommitSequence;
128
+ readonly priority?: CommitPriority;
129
+ readonly causalOperationId?: string;
130
+ /** Matches the complete ordered mutation-kind sequence. */
131
+ readonly mutationTypes?: readonly NativeTestMutationType[];
132
+ }
133
+ interface NativeTestMutationCommitMatcher {
134
+ /** Matches mutations in commits strictly newer than this checkpoint. */
135
+ readonly afterSequence?: CommitSequence;
136
+ readonly sequence?: CommitSequence;
137
+ readonly priority?: CommitPriority;
138
+ readonly causalOperationId?: string;
139
+ }
140
+ export type NativeTestNodeMatcher = NodeHandle | NativeTestElement;
141
+ /**
142
+ * Structurally matches one mutation without inspecting application values.
143
+ * Text, prop values, and command arguments remain assertions on public UI or
144
+ * behavior; prop/event names and native identities are safe structural facts.
145
+ */
146
+ export type NativeTestMutationMatcher = NativeTestMutationCommitMatcher & ({
147
+ readonly type: "create-element";
148
+ readonly node?: NativeTestNodeMatcher;
149
+ readonly component?: string;
150
+ } | {
151
+ readonly type: "create-text";
152
+ readonly node?: NativeTestNodeMatcher;
153
+ } | {
154
+ readonly type: "update-props";
155
+ readonly node?: NativeTestNodeMatcher;
156
+ /** Matches the complete unordered set of property names being set. */
157
+ readonly setProps?: readonly string[];
158
+ /** Matches the complete unordered set of property names being removed. */
159
+ readonly removedProps?: readonly string[];
160
+ } | {
161
+ readonly type: "update-text";
162
+ readonly node?: NativeTestNodeMatcher;
163
+ } | {
164
+ readonly type: "update-event-listeners";
165
+ readonly node?: NativeTestNodeMatcher;
166
+ /** Matches the complete unordered set of subscribed event names. */
167
+ readonly events?: readonly string[];
168
+ } | {
169
+ readonly type: "insert-child";
170
+ readonly parent?: NativeTestNodeMatcher;
171
+ readonly child?: NativeTestNodeMatcher;
172
+ /** `null` explicitly matches an append rather than an insertion before a sibling. */
173
+ readonly before?: NativeTestNodeMatcher | null;
174
+ } | {
175
+ readonly type: "remove-child";
176
+ readonly parent?: NativeTestNodeMatcher;
177
+ readonly child?: NativeTestNodeMatcher;
178
+ } | {
179
+ readonly type: "delete-node";
180
+ readonly node?: NativeTestNodeMatcher;
181
+ } | {
182
+ readonly type: "command";
183
+ readonly node?: NativeTestNodeMatcher;
184
+ readonly command?: string;
185
+ });
186
+ export interface NativeTestMutationMatch<Mutation extends HostMutation = HostMutation> {
187
+ readonly commit: HostCommit;
188
+ readonly mutation: Mutation;
189
+ readonly index: number;
190
+ }
191
+ export type NativeTestMatchedMutation<Matcher extends NativeTestMutationMatcher> = Extract<HostMutation, {
192
+ readonly type: Matcher["type"];
193
+ }>;
194
+ export declare class NativeTestQueryError extends Error {
195
+ readonly query: string;
196
+ readonly matchCount: number;
197
+ constructor(query: string, matchCount: number, available: string);
198
+ }
199
+ export declare class NativeTestCommitQueryError extends Error {
200
+ readonly query: string;
201
+ readonly matchCount: number;
202
+ constructor(query: string, matchCount: number, available: string);
203
+ }
204
+ export declare class NativeTestMutationQueryError extends Error {
205
+ readonly query: string;
206
+ readonly matchCount: number;
207
+ constructor(query: string, matchCount: number, available: string);
208
+ }
209
+ export declare class NativeTestWaitTimeoutError extends Error {
210
+ readonly timeout: number;
211
+ readonly attempts: number;
212
+ constructor(timeout: number, attempts: number, lastError: unknown, diagnostics: string);
213
+ }
214
+ export declare class NativeTestWaitAbortedError extends Error {
215
+ constructor(reason: unknown);
216
+ }
217
+ /** Formats one trusted in-memory host snapshot without writing to the console. */
218
+ export declare function formatNativeTestTree(snapshot: InMemorySurfaceSnapshot, options?: NativeTestDebugOptions): string;
219
+ /** Formats trusted, render-scoped commits without writing to the console. */
220
+ export declare function formatNativeTestCommits(commits: readonly HostCommit[], options?: NativeTestCommitDebugOptions): string;
221
+ export interface NativeTestScope {
222
+ readonly root: NativeTestElement;
223
+ queryAllByComponent(component: string): readonly NativeTestElement[];
224
+ queryByComponent(component: string): NativeTestElement | undefined;
225
+ getByComponent(component: string): NativeTestElement;
226
+ findByComponent(component: string, options?: NativeTestWaitOptions): Promise<NativeTestElement>;
227
+ queryAllByText(matcher: NativeTestTextMatcher): readonly NativeTestElement[];
228
+ queryByText(matcher: NativeTestTextMatcher): NativeTestElement | undefined;
229
+ getByText(matcher: NativeTestTextMatcher): NativeTestElement;
230
+ findByText(matcher: NativeTestTextMatcher, options?: NativeTestWaitOptions): Promise<NativeTestElement>;
231
+ queryAllByTestId(testId: string): readonly NativeTestElement[];
232
+ queryByTestId(testId: string): NativeTestElement | undefined;
233
+ getByTestId(testId: string): NativeTestElement;
234
+ findByTestId(testId: string, options?: NativeTestWaitOptions): Promise<NativeTestElement>;
235
+ queryAllByLabelText(matcher: NativeTestTextMatcher): readonly NativeTestElement[];
236
+ queryByLabelText(matcher: NativeTestTextMatcher): NativeTestElement | undefined;
237
+ getByLabelText(matcher: NativeTestTextMatcher): NativeTestElement;
238
+ findByLabelText(matcher: NativeTestTextMatcher, options?: NativeTestWaitOptions): Promise<NativeTestElement>;
239
+ queryAllByRole(role: string, options?: NativeTestRoleOptions): readonly NativeTestElement[];
240
+ queryByRole(role: string, options?: NativeTestRoleOptions): NativeTestElement | undefined;
241
+ getByRole(role: string, options?: NativeTestRoleOptions): NativeTestElement;
242
+ findByRole(role: string, options?: NativeTestRoleOptions, waitOptions?: NativeTestWaitOptions): Promise<NativeTestElement>;
243
+ }
244
+ /**
245
+ * One deterministic Solid Native application render. Queries always read the
246
+ * latest immutable host snapshot, so a returned element can be used for an
247
+ * event and stale handles fail instead of silently targeting another node.
248
+ */
249
+ export interface NativeTestRender {
250
+ readonly application: NativeApplication;
251
+ readonly host: InMemoryHost;
252
+ readonly surfaceId: SurfaceId;
253
+ readonly commits: readonly HostCommit[];
254
+ readonly disposed: boolean;
255
+ snapshot(): InMemorySurfaceSnapshot;
256
+ debug(options?: NativeTestDebugOptions): string;
257
+ debugCommits(options?: NativeTestCommitDebugOptions): string;
258
+ /** Returns the latest render-owned sequence for an exclusive afterSequence filter. */
259
+ commitCheckpoint(): CommitSequence;
260
+ queryAllCommits(matcher?: NativeTestCommitMatcher): readonly HostCommit[];
261
+ queryCommit(matcher?: NativeTestCommitMatcher): HostCommit | undefined;
262
+ getCommit(matcher?: NativeTestCommitMatcher): HostCommit;
263
+ queryAllMutations<Matcher extends NativeTestMutationMatcher>(matcher: Matcher): readonly NativeTestMutationMatch<NativeTestMatchedMutation<Matcher>>[];
264
+ queryMutation<Matcher extends NativeTestMutationMatcher>(matcher: Matcher): NativeTestMutationMatch<NativeTestMatchedMutation<Matcher>> | undefined;
265
+ getMutation<Matcher extends NativeTestMutationMatcher>(matcher: Matcher): NativeTestMutationMatch<NativeTestMatchedMutation<Matcher>>;
266
+ flush(): Promise<HostCommitResult | undefined>;
267
+ act<T>(callback: () => T | PromiseLike<T>): Promise<T>;
268
+ waitFor<T>(assertion: () => T, options?: NativeTestWaitOptions): Promise<T>;
269
+ queryAllByComponent(component: string): readonly NativeTestElement[];
270
+ queryByComponent(component: string): NativeTestElement | undefined;
271
+ getByComponent(component: string): NativeTestElement;
272
+ findByComponent(component: string, options?: NativeTestWaitOptions): Promise<NativeTestElement>;
273
+ queryAllByText(matcher: NativeTestTextMatcher): readonly NativeTestElement[];
274
+ queryByText(matcher: NativeTestTextMatcher): NativeTestElement | undefined;
275
+ getByText(matcher: NativeTestTextMatcher): NativeTestElement;
276
+ findByText(matcher: NativeTestTextMatcher, options?: NativeTestWaitOptions): Promise<NativeTestElement>;
277
+ queryAllByTestId(testId: string): readonly NativeTestElement[];
278
+ queryByTestId(testId: string): NativeTestElement | undefined;
279
+ getByTestId(testId: string): NativeTestElement;
280
+ findByTestId(testId: string, options?: NativeTestWaitOptions): Promise<NativeTestElement>;
281
+ queryAllByLabelText(matcher: NativeTestTextMatcher): readonly NativeTestElement[];
282
+ queryByLabelText(matcher: NativeTestTextMatcher): NativeTestElement | undefined;
283
+ getByLabelText(matcher: NativeTestTextMatcher): NativeTestElement;
284
+ findByLabelText(matcher: NativeTestTextMatcher, options?: NativeTestWaitOptions): Promise<NativeTestElement>;
285
+ queryAllByRole(role: string, options?: NativeTestRoleOptions): readonly NativeTestElement[];
286
+ queryByRole(role: string, options?: NativeTestRoleOptions): NativeTestElement | undefined;
287
+ getByRole(role: string, options?: NativeTestRoleOptions): NativeTestElement;
288
+ findByRole(role: string, options?: NativeTestRoleOptions, waitOptions?: NativeTestWaitOptions): Promise<NativeTestElement>;
289
+ within(target: NativeTestElement): NativeTestScope;
290
+ fireEvent(target: NativeTestElement, name: string, payload?: HostValue, options?: NativeTestEventOptions): Promise<NativeEvent>;
291
+ press(target: NativeTestElement, payload?: HostValue): Promise<NativeEvent>;
292
+ cleanup(): Promise<void>;
293
+ assertDisposed(): void;
294
+ }
295
+ /**
296
+ * Mounts one Solid Native tree into the strict in-memory host and flushes its
297
+ * initial commit before returning. The render always disables background
298
+ * auto-commit scheduling so every later mutation crosses an explicit test
299
+ * boundary through flush, act, or fireEvent.
300
+ */
301
+ export declare function renderNative(code: () => unknown, options?: RenderNativeOptions): Promise<NativeTestRender>;
302
+ export {};
303
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,gBAAgB,EAGrB,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC9B,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAClD,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,yBAAyB,EAAE,CAAC;IAC5D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,IAA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