MCPcopy Index your code
hub / github.com/eggjs/egg / app

Function app

test/utils.ts:34–39  ·  view source on GitHub ↗
(name: string | MockOptions, options?: MockOptions)

Source from the content-addressed store, hash-verified

32export const restore = () => mm.restore();
33
34export function app(name: string | MockOptions, options?: MockOptions) {
35 options = formatOptions(name, options);
36 const app = mm.app(options);
37 return app;
38 // return app as unknown as MockApplication;
39}
40
41export const createApp = app;
42

Callers

nothing calls this directly

Calls 2

formatOptionsFunction · 0.85
appMethod · 0.80

Tested by

no test coverage detected