@fluidframework/test-utils 2.0.0-internal.7.0.0 → 2.0.0-internal.7.1.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.
- package/CHANGELOG.md +4 -0
- package/api-extractor.json +9 -1
- package/api-report/test-utils.api.md +385 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/test-utils-alpha.d.ts +675 -0
- package/dist/test-utils-beta.d.ts +675 -0
- package/dist/test-utils-public.d.ts +675 -0
- package/dist/test-utils.d.ts +675 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +31 -31
- package/src/packageVersion.ts +1 -1
package/CHANGELOG.md
CHANGED
package/api-extractor.json
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
-
"extends": "@fluidframework/build-common/api-extractor-
|
|
3
|
+
"extends": "@fluidframework/build-common/api-extractor-base.json",
|
|
4
|
+
"messages": {
|
|
5
|
+
"extractorMessageReporting": {
|
|
6
|
+
"ae-missing-release-tag": {
|
|
7
|
+
// TODO: Fix violations and remove this rule override
|
|
8
|
+
"logLevel": "none"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
4
12
|
}
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
## API Report File for "@fluidframework/test-utils"
|
|
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 { ConfigTypes } from '@fluidframework/telemetry-utils';
|
|
8
|
+
import { ContainerRuntime } from '@fluidframework/container-runtime';
|
|
9
|
+
import { ContainerRuntimeFactoryWithDefaultDataStore } from '@fluidframework/aqueduct';
|
|
10
|
+
import { FluidDataStoreRuntime } from '@fluidframework/datastore';
|
|
11
|
+
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
12
|
+
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
13
|
+
import { ICodeDetailsLoader } from '@fluidframework/container-definitions';
|
|
14
|
+
import { IConfigProviderBase } from '@fluidframework/telemetry-utils';
|
|
15
|
+
import { IContainer } from '@fluidframework/container-definitions';
|
|
16
|
+
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
17
|
+
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
18
|
+
import { IContainerRuntimeOptions } from '@fluidframework/container-runtime';
|
|
19
|
+
import { IDocumentService } from '@fluidframework/driver-definitions';
|
|
20
|
+
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
21
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
22
|
+
import { IFluidCodeDetails } from '@fluidframework/container-definitions';
|
|
23
|
+
import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
|
|
24
|
+
import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
|
|
25
|
+
import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
26
|
+
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
27
|
+
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
28
|
+
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
29
|
+
import { IFluidModule } from '@fluidframework/container-definitions';
|
|
30
|
+
import { IFluidModuleWithDetails } from '@fluidframework/container-definitions';
|
|
31
|
+
import { IHostLoader } from '@fluidframework/container-definitions';
|
|
32
|
+
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
33
|
+
import { ILoaderProps } from '@fluidframework/container-loader';
|
|
34
|
+
import { IOnDemandSummarizeOptions } from '@fluidframework/container-runtime';
|
|
35
|
+
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
|
|
36
|
+
import { IProvideFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
|
|
37
|
+
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
38
|
+
import { IProvideRuntimeFactory } from '@fluidframework/container-definitions';
|
|
39
|
+
import { IRequest } from '@fluidframework/core-interfaces';
|
|
40
|
+
import { IRequestHeader } from '@fluidframework/core-interfaces';
|
|
41
|
+
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
42
|
+
import { IResponse } from '@fluidframework/core-interfaces';
|
|
43
|
+
import { IRuntime } from '@fluidframework/container-definitions';
|
|
44
|
+
import { ISharedMap } from '@fluidframework/map';
|
|
45
|
+
import { ISummarizer } from '@fluidframework/container-runtime';
|
|
46
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
47
|
+
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
48
|
+
import { ITelemetryBaseEvent } from '@fluidframework/core-interfaces';
|
|
49
|
+
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
50
|
+
import { ITelemetryGenericEvent } from '@fluidframework/core-interfaces';
|
|
51
|
+
import { ITestDriver } from '@fluidframework/test-driver-definitions';
|
|
52
|
+
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
53
|
+
import { Loader } from '@fluidframework/container-loader';
|
|
54
|
+
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
|
|
55
|
+
import { RuntimeRequestHandler } from '@fluidframework/request-handler';
|
|
56
|
+
|
|
57
|
+
// @public (undocumented)
|
|
58
|
+
export type ChannelFactoryRegistry = Iterable<[string | undefined, IChannelFactory]>;
|
|
59
|
+
|
|
60
|
+
// @public
|
|
61
|
+
export function createAndAttachContainer(source: IFluidCodeDetails, loader: IHostLoader, attachRequest: IRequest): Promise<IContainer>;
|
|
62
|
+
|
|
63
|
+
// @public
|
|
64
|
+
export const createContainerRuntimeFactoryWithDefaultDataStore: (Base: typeof ContainerRuntimeFactoryWithDefaultDataStore | undefined, ctorArgs: {
|
|
65
|
+
defaultFactory: IFluidDataStoreFactory;
|
|
66
|
+
registryEntries: NamedFluidDataStoreRegistryEntries;
|
|
67
|
+
dependencyContainer?: any;
|
|
68
|
+
requestHandlers?: RuntimeRequestHandler[] | undefined;
|
|
69
|
+
runtimeOptions?: IContainerRuntimeOptions | undefined;
|
|
70
|
+
provideEntryPoint?: ((runtime: IContainerRuntime) => Promise<FluidObject>) | undefined;
|
|
71
|
+
}) => ContainerRuntimeFactoryWithDefaultDataStore;
|
|
72
|
+
|
|
73
|
+
// @public (undocumented)
|
|
74
|
+
export const createDocumentId: () => string;
|
|
75
|
+
|
|
76
|
+
// @public
|
|
77
|
+
export function createLoader(packageEntries: Iterable<[IFluidCodeDetails, fluidEntryPoint]>, documentServiceFactory: IDocumentServiceFactory, urlResolver: IUrlResolver, logger?: ITelemetryBaseLogger, options?: ILoaderOptions): IHostLoader;
|
|
78
|
+
|
|
79
|
+
// @public
|
|
80
|
+
export function createSummarizer(provider: ITestObjectProvider, container: IContainer, config?: ITestContainerConfig, summaryVersion?: string, logger?: ITelemetryBaseLogger): Promise<{
|
|
81
|
+
container: IContainer;
|
|
82
|
+
summarizer: ISummarizer;
|
|
83
|
+
}>;
|
|
84
|
+
|
|
85
|
+
// @public
|
|
86
|
+
export function createSummarizerFromFactory(provider: ITestObjectProvider, container: IContainer, dataStoreFactory: IFluidDataStoreFactory, summaryVersion?: string, containerRuntimeFactoryType?: typeof ContainerRuntimeFactoryWithDefaultDataStore, registryEntries?: NamedFluidDataStoreRegistryEntries, logger?: ITelemetryBaseLogger, configProvider?: IConfigProviderBase): Promise<{
|
|
87
|
+
container: IContainer;
|
|
88
|
+
summarizer: ISummarizer;
|
|
89
|
+
}>;
|
|
90
|
+
|
|
91
|
+
// @public
|
|
92
|
+
export const createTestContainerRuntimeFactory: (containerRuntimeCtor: typeof ContainerRuntime) => {
|
|
93
|
+
new (type: string, dataStoreFactory: IFluidDataStoreFactory, runtimeOptions?: IContainerRuntimeOptions, requestHandlers?: RuntimeRequestHandler[]): {
|
|
94
|
+
type: string;
|
|
95
|
+
dataStoreFactory: IFluidDataStoreFactory;
|
|
96
|
+
runtimeOptions: IContainerRuntimeOptions;
|
|
97
|
+
requestHandlers: RuntimeRequestHandler[];
|
|
98
|
+
instantiateFirstTime(runtime: ContainerRuntime): Promise<void>;
|
|
99
|
+
instantiateFromExisting(runtime: ContainerRuntime): Promise<void>;
|
|
100
|
+
preInitialize(context: IContainerContext, existing: boolean): Promise<IRuntime & IContainerRuntime>;
|
|
101
|
+
readonly IRuntimeFactory: any;
|
|
102
|
+
instantiateRuntime(context: IContainerContext, existing: boolean): Promise<IRuntime>;
|
|
103
|
+
hasInitialized(_runtime: IContainerRuntime): Promise<void>;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
// @public (undocumented)
|
|
108
|
+
export enum DataObjectFactoryType {
|
|
109
|
+
// (undocumented)
|
|
110
|
+
Primed = 0,
|
|
111
|
+
// (undocumented)
|
|
112
|
+
Test = 1
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// @public (undocumented)
|
|
116
|
+
export const defaultTimeoutDurationMs = 250;
|
|
117
|
+
|
|
118
|
+
// @public
|
|
119
|
+
export class EventAndErrorTrackingLogger implements ITelemetryBaseLogger {
|
|
120
|
+
constructor(baseLogger: ITelemetryBaseLogger);
|
|
121
|
+
// (undocumented)
|
|
122
|
+
registerExpectedEvent(...orderedExpectedEvents: ITelemetryGenericEvent[]): void;
|
|
123
|
+
// (undocumented)
|
|
124
|
+
reportAndClearTrackedEvents(): {
|
|
125
|
+
expectedNotFound: ({
|
|
126
|
+
index: number;
|
|
127
|
+
event: ITelemetryGenericEvent | undefined;
|
|
128
|
+
} | undefined)[];
|
|
129
|
+
unexpectedErrors: ITelemetryBaseEvent[];
|
|
130
|
+
};
|
|
131
|
+
// (undocumented)
|
|
132
|
+
send(event: ITelemetryBaseEvent): void;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// @public (undocumented)
|
|
136
|
+
export type fluidEntryPoint = SupportedExportInterfaces | IFluidModule;
|
|
137
|
+
|
|
138
|
+
// @public (undocumented)
|
|
139
|
+
export function getUnexpectedLogErrorException(logger: EventAndErrorTrackingLogger | undefined, prefix?: string): Error | undefined;
|
|
140
|
+
|
|
141
|
+
// @public (undocumented)
|
|
142
|
+
export interface IOpProcessingController {
|
|
143
|
+
// (undocumented)
|
|
144
|
+
pauseProcessing(...containers: IContainer[]): Promise<void>;
|
|
145
|
+
// (undocumented)
|
|
146
|
+
processIncoming(...containers: IContainer[]): Promise<void>;
|
|
147
|
+
// (undocumented)
|
|
148
|
+
processOutgoing(...containers: IContainer[]): Promise<void>;
|
|
149
|
+
// (undocumented)
|
|
150
|
+
resumeProcessing(...containers: IContainer[]): void;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// @public (undocumented)
|
|
154
|
+
export interface IProvideTestFluidObject {
|
|
155
|
+
// (undocumented)
|
|
156
|
+
readonly ITestFluidObject: ITestFluidObject;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// @public (undocumented)
|
|
160
|
+
export interface ITestContainerConfig {
|
|
161
|
+
enableAttribution?: boolean;
|
|
162
|
+
fluidDataObjectType?: DataObjectFactoryType;
|
|
163
|
+
loaderProps?: Partial<ILoaderProps>;
|
|
164
|
+
registry?: ChannelFactoryRegistry;
|
|
165
|
+
runtimeOptions?: IContainerRuntimeOptions;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// @public (undocumented)
|
|
169
|
+
export interface ITestFluidObject extends IProvideTestFluidObject, IFluidLoadable {
|
|
170
|
+
// (undocumented)
|
|
171
|
+
readonly channel: IFluidDataStoreChannel;
|
|
172
|
+
// (undocumented)
|
|
173
|
+
readonly context: IFluidDataStoreContext;
|
|
174
|
+
// (undocumented)
|
|
175
|
+
getSharedObject<T = any>(id: string): Promise<T>;
|
|
176
|
+
// (undocumented)
|
|
177
|
+
root: ISharedMap;
|
|
178
|
+
// (undocumented)
|
|
179
|
+
readonly runtime: IFluidDataStoreRuntime;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// @public (undocumented)
|
|
183
|
+
export interface ITestObjectProvider {
|
|
184
|
+
// (undocumented)
|
|
185
|
+
createContainer(entryPoint: fluidEntryPoint, loaderProps?: Partial<ILoaderProps>): Promise<IContainer>;
|
|
186
|
+
// (undocumented)
|
|
187
|
+
createFluidEntryPoint: (testContainerConfig?: ITestContainerConfig) => fluidEntryPoint;
|
|
188
|
+
// (undocumented)
|
|
189
|
+
createLoader(packageEntries: Iterable<[IFluidCodeDetails, fluidEntryPoint]>, loaderProps?: Partial<ILoaderProps>): IHostLoader;
|
|
190
|
+
// (undocumented)
|
|
191
|
+
defaultCodeDetails: IFluidCodeDetails;
|
|
192
|
+
// (undocumented)
|
|
193
|
+
documentId: string;
|
|
194
|
+
// (undocumented)
|
|
195
|
+
documentServiceFactory: IDocumentServiceFactory;
|
|
196
|
+
// (undocumented)
|
|
197
|
+
driver: ITestDriver;
|
|
198
|
+
// (undocumented)
|
|
199
|
+
ensureSynchronized(timeoutDuration?: number): Promise<void>;
|
|
200
|
+
// (undocumented)
|
|
201
|
+
loadContainer(entryPoint: fluidEntryPoint, loaderProps?: Partial<ILoaderProps>, requestHeader?: IRequestHeader): Promise<IContainer>;
|
|
202
|
+
// (undocumented)
|
|
203
|
+
loadTestContainer(testContainerConfig?: ITestContainerConfig, requestHeader?: IRequestHeader): Promise<IContainer>;
|
|
204
|
+
// (undocumented)
|
|
205
|
+
logger: ITelemetryBaseLogger;
|
|
206
|
+
// (undocumented)
|
|
207
|
+
makeTestContainer(testContainerConfig?: ITestContainerConfig): Promise<IContainer>;
|
|
208
|
+
makeTestLoader(testContainerConfig?: ITestContainerConfig): IHostLoader;
|
|
209
|
+
// (undocumented)
|
|
210
|
+
opProcessingController: IOpProcessingController;
|
|
211
|
+
// (undocumented)
|
|
212
|
+
reset(): void;
|
|
213
|
+
// (undocumented)
|
|
214
|
+
updateDocumentId(url: IResolvedUrl | undefined): void;
|
|
215
|
+
// (undocumented)
|
|
216
|
+
urlResolver: IUrlResolver;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// @public (undocumented)
|
|
220
|
+
export class LoaderContainerTracker implements IOpProcessingController {
|
|
221
|
+
constructor(syncSummarizerClients?: boolean);
|
|
222
|
+
add<LoaderType extends IHostLoader>(loader: LoaderType): void;
|
|
223
|
+
ensureSynchronized(...containers: IContainer[]): Promise<void>;
|
|
224
|
+
pauseProcessing(...containers: IContainer[]): Promise<void>;
|
|
225
|
+
processIncoming(...containers: IContainer[]): Promise<void>;
|
|
226
|
+
processOutgoing(...containers: IContainer[]): Promise<void>;
|
|
227
|
+
reset(): void;
|
|
228
|
+
resumeProcessing(...containers: IContainer[]): IContainer[];
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// @public
|
|
232
|
+
export class LocalCodeLoader implements ICodeDetailsLoader {
|
|
233
|
+
constructor(packageEntries: Iterable<[IFluidCodeDetails, fluidEntryPoint]>, runtimeOptions?: IContainerRuntimeOptions);
|
|
234
|
+
load(source: IFluidCodeDetails): Promise<IFluidModuleWithDetails>;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// @public (undocumented)
|
|
238
|
+
export const mockConfigProvider: (settings?: Record<string, ConfigTypes>) => IConfigProviderBase;
|
|
239
|
+
|
|
240
|
+
// @public
|
|
241
|
+
export const retryWithEventualValue: <T>(callback: () => Promise<T>, check: (value: T) => boolean, defaultValue: T, maxTries?: number, backOffMs?: number) => Promise<T>;
|
|
242
|
+
|
|
243
|
+
// @public
|
|
244
|
+
export function summarizeNow(summarizer: ISummarizer, inputs?: string | IOnDemandSummarizeOptions): Promise<{
|
|
245
|
+
summaryTree: ISummaryTree;
|
|
246
|
+
summaryVersion: string;
|
|
247
|
+
summaryRefSeq: number;
|
|
248
|
+
}>;
|
|
249
|
+
|
|
250
|
+
// @public (undocumented)
|
|
251
|
+
export type SupportedExportInterfaces = Partial<IProvideRuntimeFactory & IProvideFluidDataStoreFactory & IProvideFluidDataStoreRegistry & IProvideFluidCodeDetailsComparer>;
|
|
252
|
+
|
|
253
|
+
// @public
|
|
254
|
+
export const TestContainerRuntimeFactory: {
|
|
255
|
+
new (type: string, dataStoreFactory: IFluidDataStoreFactory, runtimeOptions?: IContainerRuntimeOptions, requestHandlers?: RuntimeRequestHandler[]): {
|
|
256
|
+
type: string;
|
|
257
|
+
dataStoreFactory: IFluidDataStoreFactory;
|
|
258
|
+
runtimeOptions: IContainerRuntimeOptions;
|
|
259
|
+
requestHandlers: RuntimeRequestHandler[];
|
|
260
|
+
instantiateFirstTime(runtime: ContainerRuntime): Promise<void>;
|
|
261
|
+
instantiateFromExisting(runtime: ContainerRuntime): Promise<void>;
|
|
262
|
+
preInitialize(context: IContainerContext, existing: boolean): Promise<IRuntime & IContainerRuntime>;
|
|
263
|
+
readonly IRuntimeFactory: any;
|
|
264
|
+
instantiateRuntime(context: IContainerContext, existing: boolean): Promise<IRuntime>;
|
|
265
|
+
hasInitialized(_runtime: IContainerRuntime): Promise<void>;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
// @public
|
|
270
|
+
export class TestFluidObject implements ITestFluidObject {
|
|
271
|
+
constructor(runtime: IFluidDataStoreRuntime, channel: IFluidDataStoreChannel, context: IFluidDataStoreContext, factoryEntriesMap: Map<string, IChannelFactory>);
|
|
272
|
+
// (undocumented)
|
|
273
|
+
readonly channel: IFluidDataStoreChannel;
|
|
274
|
+
// (undocumented)
|
|
275
|
+
readonly context: IFluidDataStoreContext;
|
|
276
|
+
getSharedObject<T = any>(id: string): Promise<T>;
|
|
277
|
+
// (undocumented)
|
|
278
|
+
get handle(): IFluidHandle<this>;
|
|
279
|
+
// (undocumented)
|
|
280
|
+
get IFluidLoadable(): this;
|
|
281
|
+
// @deprecated (undocumented)
|
|
282
|
+
get IFluidRouter(): this;
|
|
283
|
+
// (undocumented)
|
|
284
|
+
initialize(existing: boolean): Promise<void>;
|
|
285
|
+
// (undocumented)
|
|
286
|
+
get ITestFluidObject(): this;
|
|
287
|
+
// @deprecated (undocumented)
|
|
288
|
+
request(request: IRequest): Promise<IResponse>;
|
|
289
|
+
// (undocumented)
|
|
290
|
+
root: ISharedMap;
|
|
291
|
+
// (undocumented)
|
|
292
|
+
readonly runtime: IFluidDataStoreRuntime;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// @public
|
|
296
|
+
export class TestFluidObjectFactory implements IFluidDataStoreFactory {
|
|
297
|
+
constructor(factoryEntries: ChannelFactoryRegistry, type?: string);
|
|
298
|
+
// (undocumented)
|
|
299
|
+
get IFluidDataStoreFactory(): this;
|
|
300
|
+
// (undocumented)
|
|
301
|
+
instantiateDataStore(context: IFluidDataStoreContext, existing: boolean): Promise<FluidDataStoreRuntime>;
|
|
302
|
+
// (undocumented)
|
|
303
|
+
readonly type: string;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// @public
|
|
307
|
+
export class TestObjectProvider implements ITestObjectProvider {
|
|
308
|
+
constructor(LoaderConstructor: typeof Loader, driver: ITestDriver, createFluidEntryPoint: (testContainerConfig?: ITestContainerConfig) => fluidEntryPoint);
|
|
309
|
+
createContainer(entryPoint: fluidEntryPoint, loaderProps?: Partial<ILoaderProps>): Promise<IContainer>;
|
|
310
|
+
// (undocumented)
|
|
311
|
+
readonly createFluidEntryPoint: (testContainerConfig?: ITestContainerConfig) => fluidEntryPoint;
|
|
312
|
+
createLoader(packageEntries: Iterable<[IFluidCodeDetails, fluidEntryPoint]>, loaderProps?: Partial<ILoaderProps>): Loader;
|
|
313
|
+
// (undocumented)
|
|
314
|
+
get defaultCodeDetails(): IFluidCodeDetails;
|
|
315
|
+
// (undocumented)
|
|
316
|
+
get documentId(): string;
|
|
317
|
+
// (undocumented)
|
|
318
|
+
get documentServiceFactory(): IDocumentServiceFactory;
|
|
319
|
+
// (undocumented)
|
|
320
|
+
readonly driver: ITestDriver;
|
|
321
|
+
// (undocumented)
|
|
322
|
+
ensureSynchronized(): Promise<void>;
|
|
323
|
+
// (undocumented)
|
|
324
|
+
loadContainer(entryPoint: fluidEntryPoint, loaderProps?: Partial<ILoaderProps>, requestHeader?: IRequestHeader): Promise<IContainer>;
|
|
325
|
+
// (undocumented)
|
|
326
|
+
readonly LoaderConstructor: typeof Loader;
|
|
327
|
+
loadTestContainer(testContainerConfig?: ITestContainerConfig, requestHeader?: IRequestHeader): Promise<IContainer>;
|
|
328
|
+
// (undocumented)
|
|
329
|
+
get logger(): EventAndErrorTrackingLogger;
|
|
330
|
+
set logger(logger: EventAndErrorTrackingLogger);
|
|
331
|
+
makeTestContainer(testContainerConfig?: ITestContainerConfig): Promise<IContainer>;
|
|
332
|
+
makeTestLoader(testContainerConfig?: ITestContainerConfig): Loader;
|
|
333
|
+
// (undocumented)
|
|
334
|
+
get opProcessingController(): IOpProcessingController;
|
|
335
|
+
// (undocumented)
|
|
336
|
+
reset(): void;
|
|
337
|
+
// (undocumented)
|
|
338
|
+
resetLoaderContainerTracker(syncSummarizerClients?: boolean): void;
|
|
339
|
+
// (undocumented)
|
|
340
|
+
updateDocumentId(resolvedUrl: IResolvedUrl | undefined): void;
|
|
341
|
+
// (undocumented)
|
|
342
|
+
get urlResolver(): IUrlResolver;
|
|
343
|
+
// (undocumented)
|
|
344
|
+
waitContainerToCatchUp(container: IContainer): Promise<boolean>;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// @public
|
|
348
|
+
export function timeoutAwait<T = void>(promise: PromiseLike<T>, timeoutOptions?: TimeoutWithError | TimeoutWithValue<T>): Promise<T>;
|
|
349
|
+
|
|
350
|
+
// @public
|
|
351
|
+
export function timeoutPromise<T = void>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void, timeoutOptions?: TimeoutWithError | TimeoutWithValue<T>): Promise<T>;
|
|
352
|
+
|
|
353
|
+
// @public (undocumented)
|
|
354
|
+
export interface TimeoutWithError {
|
|
355
|
+
durationMs?: number;
|
|
356
|
+
// (undocumented)
|
|
357
|
+
errorMsg?: string;
|
|
358
|
+
// (undocumented)
|
|
359
|
+
reject?: true;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// @public (undocumented)
|
|
363
|
+
export interface TimeoutWithValue<T = void> {
|
|
364
|
+
durationMs?: number;
|
|
365
|
+
// (undocumented)
|
|
366
|
+
reject: false;
|
|
367
|
+
// (undocumented)
|
|
368
|
+
value: T;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
// @public
|
|
372
|
+
export function waitForContainerConnection(container: IContainer, failOnContainerClose?: boolean, timeoutOptions?: TimeoutWithError): Promise<void>;
|
|
373
|
+
|
|
374
|
+
// @public
|
|
375
|
+
export function wrapDocumentService(innerDocService: IDocumentService, uploadSummaryCb: (summaryTree: ISummaryTree, context: ISummaryContext) => ISummaryContext): IDocumentService;
|
|
376
|
+
|
|
377
|
+
// @public
|
|
378
|
+
export function wrapDocumentServiceFactory(innerDocServiceFactory: IDocumentServiceFactory, uploadSummaryCb: (summaryTree: ISummaryTree, context: ISummaryContext) => ISummaryContext): IDocumentServiceFactory;
|
|
379
|
+
|
|
380
|
+
// @public
|
|
381
|
+
export function wrapDocumentStorageService(innerDocStorageService: IDocumentStorageService, uploadSummaryCb: (summaryTree: ISummaryTree, context: ISummaryContext) => ISummaryContext): IDocumentStorageService;
|
|
382
|
+
|
|
383
|
+
// (No @packageDocumentation comment for this package)
|
|
384
|
+
|
|
385
|
+
```
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/test-utils";
|
|
8
|
-
export declare const pkgVersion = "2.0.0-internal.7.
|
|
8
|
+
export declare const pkgVersion = "2.0.0-internal.7.1.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
10
|
exports.pkgName = "@fluidframework/test-utils";
|
|
11
|
-
exports.pkgVersion = "2.0.0-internal.7.
|
|
11
|
+
exports.pkgVersion = "2.0.0-internal.7.1.0";
|
|
12
12
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.0.0-internal.7.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,4BAA4B,CAAC;AACvC,QAAA,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/test-utils\";\nexport const pkgVersion = \"2.0.0-internal.7.1.0\";\n"]}
|