@m4l/testing 1.2.1-beta-docs-autocomplete-async-with-add-mf-sync.0 → 1.2.1-beta-docs-autocomplete-async-with-add-mf-sync.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/README.md +1 -4
- package/chunks/reactLeaflet-BTyANu3f.js +2113 -0
- package/index.js +52 -54
- package/package.json +1 -1
- package/types/packages/testing/vitest/src/factories/app/m4lAppComponents.d.ts +1 -3
- package/types/packages/testing/vitest/src/factories/packages/m4lPackageGclick.d.ts +1 -3
- package/types/packages/testing/vitest/src/types.d.ts +0 -32
- package/vitest/index.js +36 -38
- package/chunks/reactLeaflet-CYEpmWXL.js +0 -1888
package/index.js
CHANGED
|
@@ -1,80 +1,78 @@
|
|
|
1
1
|
import { act as o } from "react";
|
|
2
|
-
import { afterAll as r, afterEach as c, beforeAll as s, beforeEach as M, describe as l, expect as n, it as i, test as k, vi as
|
|
2
|
+
import { afterAll as r, afterEach as c, beforeAll as s, beforeEach as M, describe as l, expect as n, it as i, test as k, vi as p } from "vitest";
|
|
3
3
|
import { cleanup as u, fireEvent as m, renderHook as C, screen as f, waitFor as g, within as A } from "@testing-library/react";
|
|
4
4
|
import { default as E } from "@testing-library/user-event";
|
|
5
|
-
import { c as
|
|
6
|
-
import { D as
|
|
5
|
+
import { c as S } from "./chunks/render-CsuV8xqo.js";
|
|
6
|
+
import { D as x, a as L, M as R, f as D, v as _, y as G, s as h, k as b, h as B, u as H, z as I, p as O, l as T, o as w, P as y, G as N, H as W, J as K, I as U, N as V, K as z, L as Y, O as Z, Q as j, R as q, S as J, T as Q, U as X, V as $, W as ee, m as ae, q as oe, j as te, n as re, Y as ce, X as se, Z as Me, i as le, t as ne, r as ie, d as ke, b as pe, c as de, e as ue, g as me, B as Ce, A as fe, C as ge, w as Ae, E as Fe, F as Ee, x as Pe } from "./chunks/reactLeaflet-BTyANu3f.js";
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
x as DEFAULT_RHF_SUBMIT_REF_GLOBAL_KEY,
|
|
9
|
+
L as M4L_APP_DATAGRID_SEMANTIC_WIDTHS,
|
|
10
|
+
R as M4L_APP_WINDOW_SIZES,
|
|
11
11
|
o as act,
|
|
12
12
|
r as afterAll,
|
|
13
13
|
c as afterEach,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
D as assertColumnConfigs,
|
|
15
|
+
_ as assertFilterFields,
|
|
16
|
+
G as assertSortFields,
|
|
17
17
|
s as beforeAll,
|
|
18
18
|
M as beforeEach,
|
|
19
19
|
u as cleanup,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
h as createActionButtonComponentMock,
|
|
21
|
+
b as createChildrenContainerComponentMock,
|
|
22
|
+
B as createChildrenDivComponentMock,
|
|
23
|
+
H as createDataGridColumnHookMock,
|
|
24
|
+
I as createDefaultM4lPackageGclickMapStoreState,
|
|
25
|
+
O as createDividerComponentMock,
|
|
26
|
+
T as createHelmetPageComponentMock,
|
|
27
|
+
w as createIconComponentMock,
|
|
28
|
+
y as createLeafletModuleMock,
|
|
29
29
|
N as createM4lAppBaseModuleMock,
|
|
30
30
|
W as createM4lAppComponentsModuleMock,
|
|
31
31
|
K as createM4lAppCoreModuleMock,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
U as createM4lAppFormComponentsModuleOverrides,
|
|
33
|
+
V as createM4lAppFormLayoutsModuleOverrides,
|
|
34
|
+
z as createM4lAppGraphicsModuleMock,
|
|
35
35
|
Y as createM4lAppLayoutsModuleMock,
|
|
36
36
|
Z as createM4lBaseComponentsModuleMock,
|
|
37
|
-
j as
|
|
38
|
-
q as
|
|
39
|
-
J as
|
|
40
|
-
Q as
|
|
41
|
-
X as
|
|
42
|
-
$ as
|
|
43
|
-
ee as
|
|
44
|
-
ae as
|
|
45
|
-
oe as
|
|
46
|
-
te as
|
|
47
|
-
re as
|
|
48
|
-
ce as
|
|
49
|
-
se as
|
|
50
|
-
Me as
|
|
51
|
-
le as
|
|
52
|
-
ne as
|
|
53
|
-
ie as
|
|
54
|
-
ke as
|
|
55
|
-
|
|
56
|
-
pe as defaultM4lAppEnvironmentOverrides,
|
|
57
|
-
ue as defaultM4lPackageEnvironmentOverrides,
|
|
37
|
+
j as createM4lPackageBaseModuleMock,
|
|
38
|
+
q as createM4lPackageComponentsModuleMock,
|
|
39
|
+
J as createM4lPackageCoreModuleMock,
|
|
40
|
+
Q as createM4lPackageGclickModuleMock,
|
|
41
|
+
X as createM4lPackageGclickRealtimeModuleMock,
|
|
42
|
+
$ as createM4lPackageGraphicsModuleMock,
|
|
43
|
+
ee as createM4lPackageLayoutsModuleMock,
|
|
44
|
+
ae as createNamedFieldComponentMock,
|
|
45
|
+
oe as createNavLinkComponentMock,
|
|
46
|
+
te as createPaperFormComponentMock,
|
|
47
|
+
re as createPropertyValueComponentMock,
|
|
48
|
+
ce as createReResizableModuleMock,
|
|
49
|
+
se as createReactHookFormModuleMock,
|
|
50
|
+
Me as createReactLeafletModuleMock,
|
|
51
|
+
le as createStaticDivComponentMock,
|
|
52
|
+
ne as createSuspenseLoadableComponentMock,
|
|
53
|
+
ie as createWindowBaseComponentMock,
|
|
54
|
+
ke as defaultM4lAppEnvironmentOverrides,
|
|
55
|
+
pe as defaultM4lPackageEnvironmentOverrides,
|
|
58
56
|
l as describe,
|
|
59
|
-
|
|
57
|
+
de as distanceToNowFormatterFixture,
|
|
60
58
|
n as expect,
|
|
61
59
|
m as fireEvent,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
60
|
+
ue as gclickGnssMotionStatusEnumFixture,
|
|
61
|
+
me as gclickGnssSignalEnumFixture,
|
|
62
|
+
Ce as getMissingModuleMockExports,
|
|
63
|
+
fe as getModuleExportContractKind,
|
|
64
|
+
ge as getModuleMockKindMismatches,
|
|
65
|
+
Ae as getRHFSubmitRef,
|
|
66
|
+
Fe as installConsoleErrorFilter,
|
|
67
|
+
Ee as installRhfOnSubmitRef,
|
|
70
68
|
i as it,
|
|
71
|
-
|
|
69
|
+
S as render,
|
|
72
70
|
C as renderHook,
|
|
73
71
|
f as screen,
|
|
74
|
-
|
|
72
|
+
Pe as stringifyViewerData,
|
|
75
73
|
k as test,
|
|
76
74
|
E as userEvent,
|
|
77
|
-
|
|
75
|
+
p as vi,
|
|
78
76
|
g as waitFor,
|
|
79
77
|
A as within
|
|
80
78
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/testing",
|
|
3
|
-
"version": "1.2.1-beta-docs-autocomplete-async-with-add-mf-sync.
|
|
3
|
+
"version": "1.2.1-beta-docs-autocomplete-async-with-add-mf-sync.1",
|
|
4
4
|
"description": "Shared M4L testing contracts for React, Vitest and Playwright",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"engines": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateM4lAppComponentsModuleMockOptions, CreateM4lAppFormComponentsModuleOverridesOptions,
|
|
1
|
+
import type { CreateM4lAppComponentsModuleMockOptions, CreateM4lAppFormComponentsModuleOverridesOptions, VitestModuleMockExports } from '../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Builds the shared `@m4l/components` mock payload used by M4L app test
|
|
4
4
|
* setups.
|
|
@@ -18,5 +18,3 @@ export declare function createM4lAppComponentsModuleMock({ baseModule, moduleOve
|
|
|
18
18
|
* `moduleOverrides` payloads.
|
|
19
19
|
*/
|
|
20
20
|
export declare function createM4lAppFormComponentsModuleOverrides({ dynamicMFParameters, }?: CreateM4lAppFormComponentsModuleOverridesOptions): VitestModuleMockExports;
|
|
21
|
-
/** Isolate MF completion observers for app tests while leaving the standard factory's real exports intact. */
|
|
22
|
-
export declare function createM4lMFActionModuleOverrides(): MFActionModuleOverrides;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateM4lPackageGclickModuleMockOptions,
|
|
1
|
+
import type { CreateM4lPackageGclickModuleMockOptions, VitestModuleMockExports } from '../../types';
|
|
2
2
|
/**
|
|
3
3
|
* Builds the shared `@m4l/gclick` mock payload used by tests that depend on
|
|
4
4
|
* the exact runtime package.
|
|
@@ -8,5 +8,3 @@ import type { CreateM4lPackageGclickModuleMockOptions, ResourceSynchronizationMo
|
|
|
8
8
|
* on orchestration logic.
|
|
9
9
|
*/
|
|
10
10
|
export declare function createM4lPackageGclickModuleMock({ baseModule, mapStoreState, moduleOverrides, }?: CreateM4lPackageGclickModuleMockOptions): VitestModuleMockExports;
|
|
11
|
-
/** Supply isolated resource hooks and stable identities without loading unrelated GClick feature runtimes. */
|
|
12
|
-
export declare function createM4lResourceSynchronizationModuleOverrides(): ResourceSynchronizationModuleOverrides;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { EnvironmentFixture, HostToolsFixture, UserPreferencesFixture } from '../../mocks/src/index';
|
|
2
2
|
import type React from 'react';
|
|
3
|
-
import type { Mock } from 'vitest';
|
|
4
3
|
export type UnknownRecord = Record<string, unknown>;
|
|
5
4
|
export type VitestModuleMockExports = Record<string, unknown>;
|
|
6
5
|
export type PropsWithChildren = {
|
|
@@ -68,12 +67,6 @@ export interface CreateM4lAppComponentsModuleMockOptions extends CreateVitestMod
|
|
|
68
67
|
export interface CreateM4lAppFormComponentsModuleOverridesOptions {
|
|
69
68
|
dynamicMFParameters?: UnknownRecord;
|
|
70
69
|
}
|
|
71
|
-
/** Describe opt-in MF completion collaborators without importing the runtime component package. */
|
|
72
|
-
export type MFActionModuleOverrides = {
|
|
73
|
-
MF_ACTION_REQUEST_PARAM: 'mfActionRequest';
|
|
74
|
-
completeMFAction: Mock<(hostTools: unknown, request: unknown, outcome: unknown) => void>;
|
|
75
|
-
isMFActionRequest: Mock<(value: unknown) => boolean>;
|
|
76
|
-
};
|
|
77
70
|
export interface CreateM4lAppFormLayoutsModuleOverridesOptions {
|
|
78
71
|
createComponentFieldImplementation?: (field: UnknownRecord) => unknown;
|
|
79
72
|
}
|
|
@@ -102,31 +95,6 @@ export type CreateM4lPackageGraphicsModuleMockOptions = CreateVitestModuleMockOp
|
|
|
102
95
|
export interface CreateM4lPackageGclickModuleMockOptions extends CreateVitestModuleMockOptions {
|
|
103
96
|
mapStoreState?: UnknownRecord;
|
|
104
97
|
}
|
|
105
|
-
/** Mirrors the committed-mutation input needed by resource synchronization mocks. */
|
|
106
|
-
export interface ResourceMutationMockInput {
|
|
107
|
-
mutation: 'created' | 'updated' | 'deleted' | 'revalidate';
|
|
108
|
-
entityId: string;
|
|
109
|
-
operationId?: string;
|
|
110
|
-
requestId?: string;
|
|
111
|
-
requesterWindowId?: string;
|
|
112
|
-
}
|
|
113
|
-
/** Names resource-hook mocks through Vitest's public types for portable declarations. */
|
|
114
|
-
export type ResourceSynchronizationModuleOverrides = {
|
|
115
|
-
PERSONS_RESOURCE: 'rt_persons';
|
|
116
|
-
PROTOCOL_PERSON_REPORT_METHODS_RESOURCE: 'rt_protocol_person_report_methods';
|
|
117
|
-
useResourceInvalidation: Mock<() => {
|
|
118
|
-
scopeKey: string;
|
|
119
|
-
refreshKey: string | undefined;
|
|
120
|
-
}>;
|
|
121
|
-
useResourceMutation: Mock<() => {
|
|
122
|
-
scopeKey: string;
|
|
123
|
-
publishResourceChange: Mock<(change: ResourceMutationMockInput) => Promise<string>>;
|
|
124
|
-
reportFailure: Mock;
|
|
125
|
-
}>;
|
|
126
|
-
useEntityReferenceAdd: Mock<() => Mock<() => Promise<{
|
|
127
|
-
status: 'cancelled';
|
|
128
|
-
}>>>;
|
|
129
|
-
};
|
|
130
98
|
export interface CreateM4lPackageGclickRealtimeModuleMockOptions extends CreateVitestModuleMockOptions {
|
|
131
99
|
surface?: 'root' | 'payload' | 'contracts';
|
|
132
100
|
}
|
package/vitest/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as o, a as t, M as c, f as s, v as r, y as M, s as l, k as n, h as i, u as k, z as
|
|
1
|
+
import { D as o, a as t, M as c, f as s, v as r, y as M, s as l, k as n, h as i, u as k, z as p, p as d, l as u, o as m, P as C, G as g, H as F, J as A, I as P, N as S, K as E, L, O as R, Q as f, R as D, S as _, T as v, U as G, V as B, W as I, m as O, q as h, j as x, n as H, Y as T, X as y, Z as N, i as b, t as W, r as w, d as K, b as U, c as V, e as z, g as Y, B as Z, A as j, C as q, w as J, E as Q, F as X, x as $ } from "../chunks/reactLeaflet-BTyANu3f.js";
|
|
2
2
|
export {
|
|
3
3
|
o as DEFAULT_RHF_SUBMIT_REF_GLOBAL_KEY,
|
|
4
4
|
t as M4L_APP_DATAGRID_SEMANTIC_WIDTHS,
|
|
@@ -10,9 +10,9 @@ export {
|
|
|
10
10
|
n as createChildrenContainerComponentMock,
|
|
11
11
|
i as createChildrenDivComponentMock,
|
|
12
12
|
k as createDataGridColumnHookMock,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
p as createDefaultM4lPackageGclickMapStoreState,
|
|
14
|
+
d as createDividerComponentMock,
|
|
15
|
+
u as createHelmetPageComponentMock,
|
|
16
16
|
m as createIconComponentMock,
|
|
17
17
|
C as createLeafletModuleMock,
|
|
18
18
|
g as createM4lAppBaseModuleMock,
|
|
@@ -20,38 +20,36 @@ export {
|
|
|
20
20
|
A as createM4lAppCoreModuleMock,
|
|
21
21
|
P as createM4lAppFormComponentsModuleOverrides,
|
|
22
22
|
S as createM4lAppFormLayoutsModuleOverrides,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
G as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
x as
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
N as
|
|
40
|
-
b as
|
|
41
|
-
W as
|
|
42
|
-
w as
|
|
43
|
-
K as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
Y as
|
|
48
|
-
Z as
|
|
49
|
-
j as
|
|
50
|
-
q as
|
|
51
|
-
J as
|
|
52
|
-
Q as
|
|
53
|
-
X as
|
|
54
|
-
$ as
|
|
55
|
-
ee as installRhfOnSubmitRef,
|
|
56
|
-
ae as stringifyViewerData
|
|
23
|
+
E as createM4lAppGraphicsModuleMock,
|
|
24
|
+
L as createM4lAppLayoutsModuleMock,
|
|
25
|
+
R as createM4lBaseComponentsModuleMock,
|
|
26
|
+
f as createM4lPackageBaseModuleMock,
|
|
27
|
+
D as createM4lPackageComponentsModuleMock,
|
|
28
|
+
_ as createM4lPackageCoreModuleMock,
|
|
29
|
+
v as createM4lPackageGclickModuleMock,
|
|
30
|
+
G as createM4lPackageGclickRealtimeModuleMock,
|
|
31
|
+
B as createM4lPackageGraphicsModuleMock,
|
|
32
|
+
I as createM4lPackageLayoutsModuleMock,
|
|
33
|
+
O as createNamedFieldComponentMock,
|
|
34
|
+
h as createNavLinkComponentMock,
|
|
35
|
+
x as createPaperFormComponentMock,
|
|
36
|
+
H as createPropertyValueComponentMock,
|
|
37
|
+
T as createReResizableModuleMock,
|
|
38
|
+
y as createReactHookFormModuleMock,
|
|
39
|
+
N as createReactLeafletModuleMock,
|
|
40
|
+
b as createStaticDivComponentMock,
|
|
41
|
+
W as createSuspenseLoadableComponentMock,
|
|
42
|
+
w as createWindowBaseComponentMock,
|
|
43
|
+
K as defaultM4lAppEnvironmentOverrides,
|
|
44
|
+
U as defaultM4lPackageEnvironmentOverrides,
|
|
45
|
+
V as distanceToNowFormatterFixture,
|
|
46
|
+
z as gclickGnssMotionStatusEnumFixture,
|
|
47
|
+
Y as gclickGnssSignalEnumFixture,
|
|
48
|
+
Z as getMissingModuleMockExports,
|
|
49
|
+
j as getModuleExportContractKind,
|
|
50
|
+
q as getModuleMockKindMismatches,
|
|
51
|
+
J as getRHFSubmitRef,
|
|
52
|
+
Q as installConsoleErrorFilter,
|
|
53
|
+
X as installRhfOnSubmitRef,
|
|
54
|
+
$ as stringifyViewerData
|
|
57
55
|
};
|