@danceroutine/tango-testing 1.11.1 → 1.11.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/dist/{aDBClient-CH-ZcOaP.js → aDBClient-fMkIdR7p.js} +16 -7
- package/dist/aDBClient-fMkIdR7p.js.map +1 -0
- package/dist/assertions/index.d.ts +2 -4
- package/dist/assertions/index.js +2 -3
- package/dist/assertions-lsAd7fhA.js +15 -0
- package/dist/assertions-lsAd7fhA.js.map +1 -0
- package/dist/chunk-D7D4PA-g.js +13 -0
- package/dist/express/index.d.ts +2 -3
- package/dist/express/index.js +2 -3
- package/dist/{express-Czpfz_Ay.js → express-CH6_GAyC.js} +23 -15
- package/dist/express-CH6_GAyC.js.map +1 -0
- package/dist/factories/index.d.ts +2 -4
- package/dist/factories/index.js +2 -3
- package/dist/{factories-Cl_CAzbj.js → factories-qAJouv1I.js} +10 -8
- package/dist/factories-qAJouv1I.js.map +1 -0
- package/dist/index-49XmDOxW.d.ts +40 -0
- package/dist/index-B4H3wYuR.d.ts +325 -0
- package/dist/index-BCWo7zAn.d.ts +41 -0
- package/dist/index-CKVKW5j_.d.ts +15 -0
- package/dist/index-CnUPgs3G.d.ts +208 -0
- package/dist/index.d.ts +7 -19
- package/dist/index.js +8 -9
- package/dist/integration/index.d.ts +2 -18
- package/dist/integration/index.js +2 -4
- package/dist/{integration-CaRF_lF_.js → integration-CLzkacon.js} +99 -84
- package/dist/integration-CLzkacon.js.map +1 -0
- package/dist/mocks/index.d.ts +2 -20
- package/dist/mocks/index.js +3 -4
- package/dist/{mocks-BL_0iuAI.js → mocks-JyZwO-W4.js} +77 -65
- package/dist/mocks-JyZwO-W4.js.map +1 -0
- package/dist/vitest/index.d.ts +60 -3
- package/dist/vitest/index.js +119 -4
- package/dist/vitest/index.js.map +1 -0
- package/package.json +7 -7
- package/dist/aDBClient-CH-ZcOaP.js.map +0 -1
- package/dist/assertions/assertions.d.ts +0 -7
- package/dist/assertions-CCFZ53Y-.js +0 -15
- package/dist/assertions-CCFZ53Y-.js.map +0 -1
- package/dist/chunk-BkvOhyD0.js +0 -12
- package/dist/express/anExpressRequest.d.ts +0 -24
- package/dist/express/anExpressResponse.d.ts +0 -9
- package/dist/express-Czpfz_Ay.js.map +0 -1
- package/dist/factories/ModelDataFactory.d.ts +0 -33
- package/dist/factories-Cl_CAzbj.js.map +0 -1
- package/dist/integration/HarnessStrategyRegistry.d.ts +0 -25
- package/dist/integration/TestHarness.d.ts +0 -38
- package/dist/integration/anIntegrationHarness.d.ts +0 -5
- package/dist/integration/config.d.ts +0 -11
- package/dist/integration/conformance/index.d.ts +0 -1
- package/dist/integration/conformance/runDialectConformanceSuite.d.ts +0 -11
- package/dist/integration/domain/Dialect.d.ts +0 -5
- package/dist/integration/domain/HarnessStrategy.d.ts +0 -17
- package/dist/integration/domain/IntegrationHarness.d.ts +0 -22
- package/dist/integration/domain/ResetMode.d.ts +0 -6
- package/dist/integration/domain/index.d.ts +0 -7
- package/dist/integration/migrations/ApplyAndVerifyMigrations.d.ts +0 -16
- package/dist/integration/migrations/AssertMigrationPlan.d.ts +0 -9
- package/dist/integration/migrations/IntrospectSchema.d.ts +0 -5
- package/dist/integration/migrations/index.d.ts +0 -6
- package/dist/integration/orm/createModelQuerySetFixture.d.ts +0 -10
- package/dist/integration/orm/createQuerySetFixture.d.ts +0 -10
- package/dist/integration/orm/expectQueryResult.d.ts +0 -4
- package/dist/integration/orm/index.d.ts +0 -7
- package/dist/integration/orm/seedTable.d.ts +0 -5
- package/dist/integration/runtime/aTangoConfig.d.ts +0 -9
- package/dist/integration/runtime/aTangoRuntime.d.ts +0 -6
- package/dist/integration/runtime/index.d.ts +0 -7
- package/dist/integration/runtime/setupTestTangoRuntime.d.ts +0 -6
- package/dist/integration/smoke/AppProcessHarness.d.ts +0 -83
- package/dist/integration/smoke/index.d.ts +0 -4
- package/dist/integration/strategies/PostgresHarnessStrategy.d.ts +0 -19
- package/dist/integration/strategies/SqliteHarnessStrategy.d.ts +0 -19
- package/dist/integration-CaRF_lF_.js.map +0 -1
- package/dist/mocks/DBClient.d.ts +0 -1
- package/dist/mocks/MockQuerySetResult.d.ts +0 -6
- package/dist/mocks/aDBClient.d.ts +0 -24
- package/dist/mocks/aManager.d.ts +0 -20
- package/dist/mocks/aManyToManyRelatedManager.d.ts +0 -52
- package/dist/mocks/aModelQuerySet.d.ts +0 -8
- package/dist/mocks/aQueryExecutor.d.ts +0 -16
- package/dist/mocks/aQueryResult.d.ts +0 -9
- package/dist/mocks/aQuerySet.d.ts +0 -5
- package/dist/mocks/aRelationMeta.d.ts +0 -20
- package/dist/mocks/aRequestContext.d.ts +0 -22
- package/dist/mocks/anAdapter.d.ts +0 -13
- package/dist/mocks-BL_0iuAI.js.map +0 -1
- package/dist/vitest/registerVitestTango.d.ts +0 -46
- package/dist/vitest/withGlobalTestApi.d.ts +0 -7
- package/dist/vitest-BqZmULOa.js +0 -111
- package/dist/vitest-BqZmULOa.js.map +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Request, Response } from "express";
|
|
2
|
+
|
|
3
|
+
//#region src/express/anExpressRequest.d.ts
|
|
4
|
+
type ExpressRequestParams = Request['params'] | Record<string, string | string[]>;
|
|
5
|
+
/**
|
|
6
|
+
* Overrides accepted by `anExpressRequest`. All fields are optional;
|
|
7
|
+
* sensible defaults are provided for a minimal GET request.
|
|
8
|
+
*/
|
|
9
|
+
type ExpressRequestOverrides = {
|
|
10
|
+
protocol?: string;
|
|
11
|
+
method?: string;
|
|
12
|
+
originalUrl?: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
headers?: Record<string, any>;
|
|
15
|
+
body?: any;
|
|
16
|
+
params?: ExpressRequestParams;
|
|
17
|
+
get?: (name: string) => string | undefined;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Create a minimal Express `Request` test double.
|
|
21
|
+
* The `get` method is a Vitest mock that returns `'localhost:3000'` for the
|
|
22
|
+
* `host` header and `undefined` for everything else, matching the most common
|
|
23
|
+
* test pattern. Override any field via the `overrides` argument.
|
|
24
|
+
*/
|
|
25
|
+
declare function anExpressRequest(overrides?: ExpressRequestOverrides): Request;
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/express/anExpressResponse.d.ts
|
|
28
|
+
/**
|
|
29
|
+
* Create an Express `Response` test double.
|
|
30
|
+
*
|
|
31
|
+
* Every Express `Response` method is backed by a `vi.fn()`.
|
|
32
|
+
* Chainable methods (`status`, `sendStatus`, `links`, etc.) return `res`.
|
|
33
|
+
* Use `vi.mocked()` to access the mock API for assertions.
|
|
34
|
+
*/
|
|
35
|
+
declare function anExpressResponse(): Response;
|
|
36
|
+
declare namespace index_d_exports {
|
|
37
|
+
export { ExpressRequestOverrides, anExpressRequest, anExpressResponse };
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { anExpressRequest as i, anExpressResponse as n, ExpressRequestOverrides as r, index_d_exports as t };
|
|
41
|
+
//# sourceMappingURL=index-BCWo7zAn.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { n as GenericModelFactory } from "./index-49XmDOxW.js";
|
|
2
|
+
|
|
3
|
+
//#region src/assertions/assertions.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Assertion helpers for Tango models.
|
|
6
|
+
*/
|
|
7
|
+
declare const assertions: {
|
|
8
|
+
matchesSchema<TModel extends GenericModelFactory<Record<string, unknown>, unknown>>(model: TModel, data: unknown): asserts data is ReturnType<TModel["parse"]>;
|
|
9
|
+
};
|
|
10
|
+
declare namespace index_d_exports {
|
|
11
|
+
export { assertions };
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { assertions as n, index_d_exports as t };
|
|
15
|
+
//# sourceMappingURL=index-CKVKW5j_.d.ts.map
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { Adapter, DBClient as DBClient$1, ManagerLike, ManyToManyRelatedManager, QueryExecutor, QuerySet } from "@danceroutine/tango-orm";
|
|
2
|
+
import { vi } from "vitest";
|
|
3
|
+
import { Dialect, QueryResult, RelationMeta, TableMeta } from "@danceroutine/tango-orm/query";
|
|
4
|
+
import { BaseUser, RequestContext } from "@danceroutine/tango-resources/context";
|
|
5
|
+
|
|
6
|
+
//#region src/mocks/anAdapter.d.ts
|
|
7
|
+
type AdapterOverrides = {
|
|
8
|
+
dialect?: Dialect;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Create a real built-in `Adapter` instance for unit tests that need one.
|
|
12
|
+
*
|
|
13
|
+
* Defaults to a Postgres adapter; pass `{ dialect: 'sqlite' }` to obtain a
|
|
14
|
+
* SQLite adapter. The returned adapter carries the matching placeholder
|
|
15
|
+
* formatter so compilers exercised under test emit dialect-accurate SQL.
|
|
16
|
+
*/
|
|
17
|
+
declare function anAdapter(overrides?: AdapterOverrides): Adapter;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/mocks/aDBClient.d.ts
|
|
20
|
+
/**
|
|
21
|
+
* Looser override type for `aDBClient` that accepts concrete-typed query mocks.
|
|
22
|
+
* Consumers should not need to cast their mocks to satisfy `DBClient['query']`'s generic.
|
|
23
|
+
*/
|
|
24
|
+
type DBClientOverrides = {
|
|
25
|
+
query?: (sql: string, params?: readonly unknown[]) => Promise<{
|
|
26
|
+
rows: any[];
|
|
27
|
+
}>;
|
|
28
|
+
begin?: () => Promise<void>;
|
|
29
|
+
commit?: () => Promise<void>;
|
|
30
|
+
rollback?: () => Promise<void>;
|
|
31
|
+
close?: () => Promise<void>;
|
|
32
|
+
createSavepoint?: (name: string) => Promise<void>;
|
|
33
|
+
releaseSavepoint?: (name: string) => Promise<void>;
|
|
34
|
+
rollbackToSavepoint?: (name: string) => Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Create a lightweight `DBClient` test double with optional behavior overrides.
|
|
38
|
+
* The `query` override accepts any function returning `Promise<{ rows: any[] }>`,
|
|
39
|
+
* so concrete-typed Vitest mocks do not require a cast at the call site.
|
|
40
|
+
*/
|
|
41
|
+
declare function aDBClient(overrides?: DBClientOverrides): DBClient$1;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/mocks/aManager.d.ts
|
|
44
|
+
type ManagerOverrides<TModel extends Record<string, unknown>> = {
|
|
45
|
+
meta?: TableMeta;
|
|
46
|
+
querySet?: QuerySet<TModel>;
|
|
47
|
+
query?: ManagerLike<TModel>['query'];
|
|
48
|
+
all?: ManagerLike<TModel>['all'];
|
|
49
|
+
getOrCreate?: ManagerLike<TModel>['getOrCreate'];
|
|
50
|
+
updateOrCreate?: ManagerLike<TModel>['updateOrCreate'];
|
|
51
|
+
findById?: ManagerLike<TModel>['findById'];
|
|
52
|
+
getOrThrow?: ManagerLike<TModel>['getOrThrow'];
|
|
53
|
+
create?: ManagerLike<TModel>['create'];
|
|
54
|
+
update?: ManagerLike<TModel>['update'];
|
|
55
|
+
delete?: ManagerLike<TModel>['delete'];
|
|
56
|
+
bulkCreate?: ManagerLike<TModel>['bulkCreate'];
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Create a manager-shaped test double for resource and service tests.
|
|
60
|
+
*/
|
|
61
|
+
declare function aManager<TModel extends Record<string, unknown>>(overrides?: ManagerOverrides<TModel>): ManagerLike<TModel>;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/mocks/aManyToManyRelatedManager.d.ts
|
|
64
|
+
/**
|
|
65
|
+
* Overrides accepted by the {@link aManyToManyRelatedManager} fixture. All
|
|
66
|
+
* fields are optional; defaults produce a manager bound to owner primary key
|
|
67
|
+
* `7`, relation name `'tags'`, owner label `'Post'`, and target primary-key
|
|
68
|
+
* field `'id'`.
|
|
69
|
+
*/
|
|
70
|
+
interface ManyToManyRelatedManagerFixtureOverrides<TTarget extends Record<string, unknown>> {
|
|
71
|
+
ownerPrimaryKey?: unknown;
|
|
72
|
+
relationName?: string;
|
|
73
|
+
ownerModelLabel?: string;
|
|
74
|
+
targetPrimaryKeyField?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Resolver returned by the manager's `targetExecutorProvider`. Pass `null`
|
|
77
|
+
* to simulate the registry not yet knowing about the target model; omit to
|
|
78
|
+
* return a minimal executor stub.
|
|
79
|
+
*/
|
|
80
|
+
targetExecutor?: QueryExecutor<TTarget> | null;
|
|
81
|
+
insertLink?: (ownerPrimaryKey: unknown, targetPrimaryKey: unknown) => Promise<void>;
|
|
82
|
+
insertLinks?: (ownerPrimaryKey: unknown, targetPrimaryKeys: readonly unknown[]) => Promise<void>;
|
|
83
|
+
deleteLink?: (ownerPrimaryKey: unknown, targetPrimaryKey: unknown) => Promise<void>;
|
|
84
|
+
deleteLinks?: (ownerPrimaryKey: unknown, targetPrimaryKeys: readonly unknown[]) => Promise<void>;
|
|
85
|
+
deleteAllLinksForOwner?: (ownerPrimaryKey: unknown) => Promise<void>;
|
|
86
|
+
selectTargetIdsForOwner?: (ownerPrimaryKey: unknown) => Promise<readonly (string | number)[]>;
|
|
87
|
+
createTarget?: (input: Partial<TTarget>) => Promise<TTarget>;
|
|
88
|
+
runAtomic?: <T>(work: () => Promise<T>) => Promise<T>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Return shape of the {@link aManyToManyRelatedManager} fixture. The spy
|
|
92
|
+
* references are returned alongside the manager so tests can assert against
|
|
93
|
+
* the join-table calls without reaching into private fields.
|
|
94
|
+
*/
|
|
95
|
+
interface ManyToManyRelatedManagerFixture<TTarget extends Record<string, unknown>> {
|
|
96
|
+
manager: ManyToManyRelatedManager<TTarget>;
|
|
97
|
+
insertLink: ReturnType<typeof vi.fn>;
|
|
98
|
+
insertLinks: ReturnType<typeof vi.fn>;
|
|
99
|
+
deleteLink: ReturnType<typeof vi.fn>;
|
|
100
|
+
deleteLinks: ReturnType<typeof vi.fn>;
|
|
101
|
+
deleteAllLinksForOwner: ReturnType<typeof vi.fn>;
|
|
102
|
+
selectTargetIdsForOwner: ReturnType<typeof vi.fn>;
|
|
103
|
+
createTarget: ReturnType<typeof vi.fn>;
|
|
104
|
+
runAtomic: ReturnType<typeof vi.fn>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Build a {@link ManyToManyRelatedManager} instance wired to lightweight spies
|
|
108
|
+
* for its underlying join-table operations. The fixture skips the
|
|
109
|
+
* relation-metadata and registry plumbing exercised by `ModelManager`, so
|
|
110
|
+
* tests can focus on manager behavior in isolation.
|
|
111
|
+
*/
|
|
112
|
+
declare function aManyToManyRelatedManager<TTarget extends Record<string, unknown>>(overrides?: ManyToManyRelatedManagerFixtureOverrides<TTarget>): ManyToManyRelatedManagerFixture<TTarget>;
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/mocks/aModelQuerySet.d.ts
|
|
115
|
+
/**
|
|
116
|
+
* Create a chainable model-queryset test double with optional behavior overrides.
|
|
117
|
+
*
|
|
118
|
+
* All methods are wrapped in `vi.fn()` so they can be asserted on directly
|
|
119
|
+
* without an additional `vi.mocked()` call.
|
|
120
|
+
*/
|
|
121
|
+
declare function aModelQuerySet<TModel extends Record<string, unknown>, TResult extends Record<string, unknown> = TModel>(overrides?: Partial<QuerySet<TModel, TResult>>): QuerySet<TModel, TResult>;
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/mocks/aQueryResult.d.ts
|
|
124
|
+
type AQueryResultOverrides<TModel> = {
|
|
125
|
+
items?: readonly TModel[];
|
|
126
|
+
results?: readonly TModel[];
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Create a query-result test value with optional overrides.
|
|
130
|
+
*/
|
|
131
|
+
declare function aQueryResult<TModel>(overrides?: AQueryResultOverrides<TModel>): QueryResult<TModel>;
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/mocks/aQuerySet.d.ts
|
|
134
|
+
/**
|
|
135
|
+
* @deprecated Use `aModelQuerySet(...)` instead.
|
|
136
|
+
*/
|
|
137
|
+
declare function aQuerySet<TModel extends Record<string, unknown>, TResult extends Record<string, unknown> = TModel>(overrides?: Partial<QuerySet<TModel, TResult>>): QuerySet<TModel, TResult>;
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/mocks/aRequestContext.d.ts
|
|
140
|
+
type RequestContextFactory<TUser, TContext extends RequestContextLike<TUser>> = (request: Request, user: TUser | null) => TContext;
|
|
141
|
+
type RequestContextLike<TUser> = {
|
|
142
|
+
request: Request;
|
|
143
|
+
user: TUser | null;
|
|
144
|
+
params: Record<string, string>;
|
|
145
|
+
};
|
|
146
|
+
type RequestContextFixtureOptions<TUser = BaseUser, TContext extends RequestContextLike<TUser> = RequestContext<TUser>> = {
|
|
147
|
+
method?: string;
|
|
148
|
+
url?: string;
|
|
149
|
+
body?: unknown;
|
|
150
|
+
user?: TUser | null;
|
|
151
|
+
params?: Record<string, string>;
|
|
152
|
+
headers?: HeadersInit;
|
|
153
|
+
contextFactory?: RequestContextFactory<TUser, TContext>;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Create a RequestContext fixture with optional method/url/body/user/params.
|
|
157
|
+
*/
|
|
158
|
+
declare function aRequestContext<TUser = BaseUser, TContext extends RequestContextLike<TUser> = RequestContext<TUser>>(method: string, url: string, body?: unknown): TContext;
|
|
159
|
+
declare function aRequestContext<TUser = BaseUser, TContext extends RequestContextLike<TUser> = RequestContext<TUser>>(options?: RequestContextFixtureOptions<TUser, TContext>): TContext;
|
|
160
|
+
//#endregion
|
|
161
|
+
//#region src/mocks/aQueryExecutor.d.ts
|
|
162
|
+
type QueryExecutorOverrides<TModel extends Record<string, unknown>> = {
|
|
163
|
+
dialect?: Dialect;
|
|
164
|
+
adapter?: Adapter;
|
|
165
|
+
meta?: TableMeta;
|
|
166
|
+
query?: (sql: string, params?: readonly unknown[]) => Promise<{
|
|
167
|
+
rows: unknown[];
|
|
168
|
+
}>;
|
|
169
|
+
run?: QueryExecutor<TModel>['run'];
|
|
170
|
+
attachPersistedRecordAccessors?: QueryExecutor<TModel>['attachPersistedRecordAccessors'];
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Create a minimal `QueryExecutor` test double for `QuerySet` tests.
|
|
174
|
+
*/
|
|
175
|
+
declare function aQueryExecutor<TModel extends Record<string, unknown>>(overrides?: QueryExecutorOverrides<TModel>): QueryExecutor<TModel>;
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/mocks/aRelationMeta.d.ts
|
|
178
|
+
type RelationMetaInput = {
|
|
179
|
+
kind: RelationMeta['kind'];
|
|
180
|
+
table: string;
|
|
181
|
+
sourceKey: string;
|
|
182
|
+
targetKey: string;
|
|
183
|
+
targetColumns: Record<string, string>;
|
|
184
|
+
alias: string;
|
|
185
|
+
edgeId?: string;
|
|
186
|
+
sourceModelKey?: string;
|
|
187
|
+
targetModelKey?: string;
|
|
188
|
+
targetPrimaryKey?: string;
|
|
189
|
+
targetMeta?: TableMeta;
|
|
190
|
+
capabilities?: Partial<RelationMeta['capabilities']>;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Build recursive relation metadata fixtures for planner/compiler/query tests.
|
|
194
|
+
*/
|
|
195
|
+
declare function aRelationMeta(input: RelationMetaInput): RelationMeta;
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region src/mocks/MockQuerySetResult.d.ts
|
|
198
|
+
/**
|
|
199
|
+
* @deprecated Use QuerySet instead.
|
|
200
|
+
* Legacy alias for query-set test doubles.
|
|
201
|
+
*/
|
|
202
|
+
type MockQuerySetResult<TModel extends Record<string, unknown>, TResult extends Record<string, unknown> = TModel> = QuerySet<TModel, TResult>;
|
|
203
|
+
declare namespace index_d_exports {
|
|
204
|
+
export { AdapterOverrides, DBClient$1 as DBClient, ManagerOverrides, ManyToManyRelatedManagerFixture, ManyToManyRelatedManagerFixtureOverrides, MockQuerySetResult, QueryExecutorOverrides, RequestContextFixtureOptions, aDBClient, aManager, aManyToManyRelatedManager, aModelQuerySet, aQueryExecutor, aQueryResult, aQuerySet, aRelationMeta, aRequestContext, anAdapter };
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
207
|
+
export { DBClient$1 as _, aQueryExecutor as a, aQuerySet as c, ManyToManyRelatedManagerFixture as d, ManyToManyRelatedManagerFixtureOverrides as f, aDBClient as g, aManager as h, QueryExecutorOverrides as i, aQueryResult as l, ManagerOverrides as m, MockQuerySetResult as n, RequestContextFixtureOptions as o, aManyToManyRelatedManager as p, aRelationMeta as r, aRequestContext as s, index_d_exports as t, aModelQuerySet as u, AdapterOverrides as v, anAdapter as y };
|
|
208
|
+
//# sourceMappingURL=index-CnUPgs3G.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export * as integration from './integration/index';
|
|
9
|
-
export * as vitest from './vitest/index';
|
|
10
|
-
export * as express from './express/index';
|
|
11
|
-
export { anAdapter, aDBClient, aManager, aManyToManyRelatedManager, aModelQuerySet, aQueryResult, aQuerySet, aRequestContext, aQueryExecutor, aRelationMeta, } from './mocks/index';
|
|
12
|
-
export { anExpressRequest, anExpressResponse } from './express/index';
|
|
13
|
-
export type { AdapterOverrides, DBClient, ManagerOverrides, ManyToManyRelatedManagerFixture, ManyToManyRelatedManagerFixtureOverrides, MockQuerySetResult, QueryExecutorOverrides, RequestContextFixtureOptions, } from './mocks/index';
|
|
14
|
-
export type { ExpressRequestOverrides } from './express/index';
|
|
15
|
-
export { ModelDataFactory } from './factories/index';
|
|
16
|
-
export type { GenericModelFactory } from './factories/index';
|
|
17
|
-
export { assertions } from './assertions/index';
|
|
18
|
-
export * from './integration/index';
|
|
19
|
-
export { withGlobalTestApi } from './vitest/index';
|
|
1
|
+
import { n as GenericModelFactory, r as ModelDataFactory, t as index_d_exports$4 } from "./index-49XmDOxW.js";
|
|
2
|
+
import { n as assertions, t as index_d_exports } from "./index-CKVKW5j_.js";
|
|
3
|
+
import { i as anExpressRequest, n as anExpressResponse, r as ExpressRequestOverrides, t as index_d_exports$3 } from "./index-BCWo7zAn.js";
|
|
4
|
+
import { _ as DBClient, a as aQueryExecutor, c as aQuerySet, d as ManyToManyRelatedManagerFixture, f as ManyToManyRelatedManagerFixtureOverrides, g as aDBClient, h as aManager, i as QueryExecutorOverrides, l as aQueryResult, m as ManagerOverrides, n as MockQuerySetResult, o as RequestContextFixtureOptions, p as aManyToManyRelatedManager, r as aRelationMeta, s as aRequestContext, t as index_d_exports$7, u as aModelQuerySet, v as AdapterOverrides, y as anAdapter } from "./index-CnUPgs3G.js";
|
|
5
|
+
import { A as IntegrationHarness, C as applyAndVerifyMigrations, D as HarnessOptions, E as index_d_exports$2, M as Dialect, O as HarnessStrategy, S as MigrationStatus, T as assertMigrationPlan, _ as index_d_exports$1, a as seedTable, b as introspectSchema, c as anIntegrationHarness, d as AppProcessHarnessOptions, f as index_d_exports$8, g as aTangoConfig, h as TestTangoConfigOptions, i as createModelQuerySetFixture, j as ResetMode, k as DialectTestCapabilities, l as index_d_exports$9, m as aTangoRuntime, n as expectQueryResult, o as TestHarness, p as setupTestTangoRuntime, r as createQuerySetFixture, s as HarnessStrategyRegistry, t as index_d_exports$5, u as AppProcessHarness, v as runDialectConformanceSuite, w as AssertMigrationPlanOptions, x as ApplyAndVerifyMigrationsOptions, y as index_d_exports$6 } from "./index-B4H3wYuR.js";
|
|
6
|
+
import { t as index_d_exports$10, withGlobalTestApi } from "./vitest/index.js";
|
|
7
|
+
export { type AdapterOverrides, AppProcessHarness, AppProcessHarnessOptions, type ApplyAndVerifyMigrationsOptions, type AssertMigrationPlanOptions, type DBClient, Dialect, type DialectTestCapabilities, type ExpressRequestOverrides, type GenericModelFactory, type HarnessOptions, type HarnessStrategy, HarnessStrategyRegistry, type IntegrationHarness, type ManagerOverrides, type ManyToManyRelatedManagerFixture, type ManyToManyRelatedManagerFixtureOverrides, type MigrationStatus, type MockQuerySetResult, ModelDataFactory, type QueryExecutorOverrides, type RequestContextFixtureOptions, ResetMode, TestHarness, type TestTangoConfigOptions, aDBClient, aManager, aManyToManyRelatedManager, aModelQuerySet, aQueryExecutor, aQueryResult, aQuerySet, aRelationMeta, aRequestContext, aTangoConfig, aTangoRuntime, anAdapter, anExpressRequest, anExpressResponse, anIntegrationHarness, applyAndVerifyMigrations, assertMigrationPlan, assertions, index_d_exports as assertionsDomain, index_d_exports$1 as conformance, createModelQuerySetFixture, createQuerySetFixture, index_d_exports$2 as domain, expectQueryResult, index_d_exports$3 as express, index_d_exports$4 as factories, index_d_exports$5 as integration, introspectSchema, index_d_exports$6 as migrations, index_d_exports$7 as mocks, runDialectConformanceSuite, index_d_exports$8 as runtime, seedTable, setupTestTangoRuntime, index_d_exports$9 as smoke, index_d_exports$10 as vitest, withGlobalTestApi };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ModelDataFactory, factories_exports } from "./factories-
|
|
4
|
-
import { assertions, assertions_exports } from "./assertions-
|
|
5
|
-
import {
|
|
6
|
-
import { vitest_exports, withGlobalTestApi } from "./vitest
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
export { AppProcessHarness, Dialect, HarnessStrategyRegistry, ModelDataFactory, ResetMode, TestHarness, aDBClient, aManager, aManyToManyRelatedManager, aModelQuerySet, aQueryExecutor, aQueryResult, aQuerySet, aRelationMeta, aRequestContext, aTangoConfig, aTangoRuntime, anAdapter, anExpressRequest, anExpressResponse, anIntegrationHarness, applyAndVerifyMigrations, assertMigrationPlan, assertions, assertions_exports as assertionsDomain, conformance_exports as conformance, createModelQuerySetFixture, createQuerySetFixture, domain_exports as domain, expectQueryResult, express_exports as express, factories_exports as factories, integration_exports as integration, introspectSchema, migrations_exports as migrations, mocks_exports as mocks, runDialectConformanceSuite, runtime_exports as runtime, seedTable, setupTestTangoRuntime, smoke_exports as smoke, vitest_exports as vitest, withGlobalTestApi };
|
|
1
|
+
import { n as anAdapter, t as aDBClient } from "./aDBClient-fMkIdR7p.js";
|
|
2
|
+
import { a as aManyToManyRelatedManager, c as aQueryExecutor, i as aQuerySet, l as aQueryResult, n as aRelationMeta, o as aManager, r as aRequestContext, s as aModelQuerySet, t as mocks_exports } from "./mocks-JyZwO-W4.js";
|
|
3
|
+
import { n as ModelDataFactory, t as factories_exports } from "./factories-qAJouv1I.js";
|
|
4
|
+
import { n as assertions, t as assertions_exports } from "./assertions-lsAd7fhA.js";
|
|
5
|
+
import { C as Dialect, S as ResetMode, _ as migrations_exports, a as seedTable, b as assertMigrationPlan, c as anIntegrationHarness, d as runtime_exports, f as setupTestTangoRuntime, g as runDialectConformanceSuite, h as conformance_exports, i as createModelQuerySetFixture, l as smoke_exports, m as aTangoConfig, n as expectQueryResult, o as TestHarness, p as aTangoRuntime, r as createQuerySetFixture, s as HarnessStrategyRegistry, t as integration_exports, u as AppProcessHarness, v as introspectSchema, x as domain_exports, y as applyAndVerifyMigrations } from "./integration-CLzkacon.js";
|
|
6
|
+
import { t as vitest_exports, withGlobalTestApi } from "./vitest/index.js";
|
|
7
|
+
import { n as anExpressResponse, r as anExpressRequest, t as express_exports } from "./express-CH6_GAyC.js";
|
|
8
|
+
export { AppProcessHarness, Dialect, HarnessStrategyRegistry, ModelDataFactory, ResetMode, TestHarness, aDBClient, aManager, aManyToManyRelatedManager, aModelQuerySet, aQueryExecutor, aQueryResult, aQuerySet, aRelationMeta, aRequestContext, aTangoConfig, aTangoRuntime, anAdapter, anExpressRequest, anExpressResponse, anIntegrationHarness, applyAndVerifyMigrations, assertMigrationPlan, assertions, assertions_exports as assertionsDomain, conformance_exports as conformance, createModelQuerySetFixture, createQuerySetFixture, domain_exports as domain, expectQueryResult, express_exports as express, factories_exports as factories, integration_exports as integration, introspectSchema, migrations_exports as migrations, mocks_exports as mocks, runDialectConformanceSuite, runtime_exports as runtime, seedTable, setupTestTangoRuntime, smoke_exports as smoke, vitest_exports as vitest, withGlobalTestApi };
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* imports and curated flat exports for TS-native ergonomics.
|
|
4
|
-
*/
|
|
5
|
-
export * as domain from './domain/index';
|
|
6
|
-
export * as migrations from './migrations/index';
|
|
7
|
-
export * as conformance from './conformance/index';
|
|
8
|
-
export * as runtime from './runtime/index';
|
|
9
|
-
export * as smoke from './smoke/index';
|
|
10
|
-
export * from './domain/index';
|
|
11
|
-
export * from './anIntegrationHarness';
|
|
12
|
-
export * from './HarnessStrategyRegistry';
|
|
13
|
-
export * from './TestHarness';
|
|
14
|
-
export * from './migrations/index';
|
|
15
|
-
export * from './conformance/index';
|
|
16
|
-
export * from './orm/index';
|
|
17
|
-
export * from './runtime/index';
|
|
18
|
-
export * from './smoke/index';
|
|
1
|
+
import { A as IntegrationHarness, C as applyAndVerifyMigrations, D as HarnessOptions, E as index_d_exports$1, M as Dialect, O as HarnessStrategy, S as MigrationStatus, T as assertMigrationPlan, _ as index_d_exports, a as seedTable, b as introspectSchema, c as anIntegrationHarness, d as AppProcessHarnessOptions, f as index_d_exports$3, g as aTangoConfig, h as TestTangoConfigOptions, i as createModelQuerySetFixture, j as ResetMode, k as DialectTestCapabilities, l as index_d_exports$4, m as aTangoRuntime, n as expectQueryResult, o as TestHarness, p as setupTestTangoRuntime, r as createQuerySetFixture, s as HarnessStrategyRegistry, u as AppProcessHarness, v as runDialectConformanceSuite, w as AssertMigrationPlanOptions, x as ApplyAndVerifyMigrationsOptions, y as index_d_exports$2 } from "../index-B4H3wYuR.js";
|
|
2
|
+
export { AppProcessHarness, AppProcessHarnessOptions, type ApplyAndVerifyMigrationsOptions, type AssertMigrationPlanOptions, Dialect, type DialectTestCapabilities, type HarnessOptions, type HarnessStrategy, HarnessStrategyRegistry, type IntegrationHarness, type MigrationStatus, ResetMode, TestHarness, type TestTangoConfigOptions, aTangoConfig, aTangoRuntime, anIntegrationHarness, applyAndVerifyMigrations, assertMigrationPlan, index_d_exports as conformance, createModelQuerySetFixture, createQuerySetFixture, index_d_exports$1 as domain, expectQueryResult, introspectSchema, index_d_exports$2 as migrations, runDialectConformanceSuite, index_d_exports$3 as runtime, seedTable, setupTestTangoRuntime, index_d_exports$4 as smoke };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { AppProcessHarness, Dialect, HarnessStrategyRegistry, ResetMode, TestHarness, aTangoConfig, aTangoRuntime, anIntegrationHarness, applyAndVerifyMigrations, assertMigrationPlan, conformance_exports as conformance, createModelQuerySetFixture, createQuerySetFixture, domain_exports as domain, expectQueryResult, introspectSchema, migrations_exports as migrations, runDialectConformanceSuite, runtime_exports as runtime, seedTable, setupTestTangoRuntime, smoke_exports as smoke };
|
|
1
|
+
import { C as Dialect, S as ResetMode, _ as migrations_exports, a as seedTable, b as assertMigrationPlan, c as anIntegrationHarness, d as runtime_exports, f as setupTestTangoRuntime, g as runDialectConformanceSuite, h as conformance_exports, i as createModelQuerySetFixture, l as smoke_exports, m as aTangoConfig, n as expectQueryResult, o as TestHarness, p as aTangoRuntime, r as createQuerySetFixture, s as HarnessStrategyRegistry, u as AppProcessHarness, v as introspectSchema, x as domain_exports, y as applyAndVerifyMigrations } from "../integration-CLzkacon.js";
|
|
2
|
+
export { AppProcessHarness, Dialect, HarnessStrategyRegistry, ResetMode, TestHarness, aTangoConfig, aTangoRuntime, anIntegrationHarness, applyAndVerifyMigrations, assertMigrationPlan, conformance_exports as conformance, createModelQuerySetFixture, createQuerySetFixture, domain_exports as domain, expectQueryResult, introspectSchema, migrations_exports as migrations, runDialectConformanceSuite, runtime_exports as runtime, seedTable, setupTestTangoRuntime, smoke_exports as smoke };
|