We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 036a526 commit fd64680Copy full SHA for fd64680
packages/mw-demo/test/setup.ts
@@ -14,7 +14,7 @@ let app: Application
14
15
export async function mochaGlobalSetup(this: Suite) {
16
app = await createAppInstance()
17
- updateConfig(app, testConfig)
+ await updateConfig(app, testConfig)
18
}
19
20
export async function mochaGlobalTeardown(this: Suite) {
@@ -52,7 +52,7 @@ async function createAppInstance(): Promise<Application> {
52
// https://midwayjs.org/docs/testing
53
54
55
-function updateConfig(mockApp: Application, config: TestConfig): void {
+async function updateConfig(mockApp: Application, config: TestConfig): Promise<void> {
56
config.app = mockApp
57
config.httpRequest = createHttpRequest(mockApp)
58
0 commit comments