(
preloadModules: any[],
globalConfig: Record<string, any> = {}
)
| 23 | const koaComponent = require('../src'); |
| 24 | |
| 25 | async 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 | |
| 39 | async function createFunctionalApp( |
| 40 | setup: () => Array<Record<string, any>> | Record<string, any>, |
no test coverage detected