@midwayjs/mock 3.11.1-beta.2 → 3.11.1-beta.3

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/creator.d.ts CHANGED
@@ -11,10 +11,7 @@ export declare function close<T extends IMidwayApplication<any>>(app: T, options
11
11
  cleanTempDir?: boolean;
12
12
  sleep?: number;
13
13
  }): Promise<void>;
14
- export declare function createFunctionApp<T extends IMidwayFramework<any, any, any, any, any>, Y = ReturnType<T['getApplication']>>(options: MockAppConfigurationOptions, customFrameworkModule?: {
15
- new (...args: any[]): T;
16
- } | ComponentModule): Promise<Y>;
17
- export declare function createFunctionApp<T extends IMidwayFramework<any, any, any, any, any>, Y = ReturnType<T['getApplication']>>(baseDir: string, options: MockAppConfigurationOptions, customFrameworkModule?: {
14
+ export declare function createFunctionApp<T extends IMidwayFramework<any, any, any, any, any>, Y = ReturnType<T['getApplication']>>(baseDir?: string | MockAppConfigurationOptions, options?: MockAppConfigurationOptions, customFrameworkModule?: {
18
15
  new (...args: any[]): T;
19
16
  } | ComponentModule): Promise<Y>;
20
17
  declare class BootstrapAppStarter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/mock",
3
- "version": "3.11.1-beta.2",
3
+ "version": "3.11.1-beta.3",
4
4
  "description": "create your test app from midway framework",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index.d.ts",