MCPcopy
hub / github.com/midwayjs/midway / createClassApp

Function createClassApp

packages/web-koa/test/functional-parity.test.ts:25–37  ·  view source on GitHub ↗
(
  preloadModules: any[],
  globalConfig: Record<string, any> = {}
)

Source from the content-addressed store, hash-verified

23const koaComponent = require('../src');
24
25async function createClassApp(
26 preloadModules: any[],
27 globalConfig: Record<string, any> = {}
28) {
29 return createLightApp('', {
30 imports: [koaComponent],
31 preloadModules,
32 globalConfig: {
33 keys: '123',
34 ...globalConfig,
35 },
36 });
37}
38
39async function createFunctionalApp(
40 setup: () => Array<Record<string, any>> | Record<string, any>,

Callers 1

Calls 1

createLightAppFunction · 0.90

Tested by

no test coverage detected