@medplum/mock 5.2.0 → 5.2.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/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/cjs/index.d.ts +4 -2
- package/dist/esm/index.d.ts +4 -2
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +2 -2
- package/package.json +5 -5
package/dist/cjs/index.d.ts
CHANGED
|
@@ -449,7 +449,8 @@ export declare interface MockClientOptions extends Pick<MedplumClientOptions, 'b
|
|
|
449
449
|
readonly seedDefaultData?: boolean;
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
-
|
|
452
|
+
/** Test-only helpers exposed on `MockClient.mock`. */
|
|
453
|
+
export declare interface MockClientTestMethods {
|
|
453
454
|
withSeeding: <T>(fn: () => T | Promise<T>) => Promise<T>;
|
|
454
455
|
setProfile: (profile: ProfileResource | undefined) => void;
|
|
455
456
|
setProject: (project: Project | undefined) => void;
|
|
@@ -491,7 +492,8 @@ export declare class MockFetchClient {
|
|
|
491
492
|
private mockFhirHandler;
|
|
492
493
|
}
|
|
493
494
|
|
|
494
|
-
|
|
495
|
+
/** Options for constructing a `MockFetchClient`. */
|
|
496
|
+
export declare interface MockFetchClientOptions {
|
|
495
497
|
debug?: boolean;
|
|
496
498
|
seedDefaultData?: boolean;
|
|
497
499
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -449,7 +449,8 @@ export declare interface MockClientOptions extends Pick<MedplumClientOptions, 'b
|
|
|
449
449
|
readonly seedDefaultData?: boolean;
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
-
|
|
452
|
+
/** Test-only helpers exposed on `MockClient.mock`. */
|
|
453
|
+
export declare interface MockClientTestMethods {
|
|
453
454
|
withSeeding: <T>(fn: () => T | Promise<T>) => Promise<T>;
|
|
454
455
|
setProfile: (profile: ProfileResource | undefined) => void;
|
|
455
456
|
setProject: (project: Project | undefined) => void;
|
|
@@ -491,7 +492,8 @@ export declare class MockFetchClient {
|
|
|
491
492
|
private mockFhirHandler;
|
|
492
493
|
}
|
|
493
494
|
|
|
494
|
-
|
|
495
|
+
/** Options for constructing a `MockFetchClient`. */
|
|
496
|
+
export declare interface MockFetchClientOptions {
|
|
495
497
|
debug?: boolean;
|
|
496
498
|
seedDefaultData?: boolean;
|
|
497
499
|
}
|