Skip to content

Commit

Permalink
fix: mockClassFunction missing (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 authored Jan 15, 2021
1 parent 30cd26c commit 88fa763
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/mock/src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,7 @@ declare module 'egg' {
* mock csrf
*/
mockCsrf(): Application;

mockClassFunction(className: string, methodName: string, fnOrData: any): Application;
}
}
4 changes: 4 additions & 0 deletions packages/mock/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export async function create<
enable: true,
package: 'egg-mock',
},
'midway-mock': {
enable: true,
package: '@midwayjs/mock',
},
watcher: false,
development: false,
},
Expand Down

0 comments on commit 88fa763

Please sign in to comment.