Skip to content

Commit fd64680

Browse files
committed
test(boilerplate): update test/setup.ts
1 parent 036a526 commit fd64680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mw-demo/test/setup.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let app: Application
1414

1515
export async function mochaGlobalSetup(this: Suite) {
1616
app = await createAppInstance()
17-
updateConfig(app, testConfig)
17+
await updateConfig(app, testConfig)
1818
}
1919

2020
export async function mochaGlobalTeardown(this: Suite) {
@@ -52,7 +52,7 @@ async function createAppInstance(): Promise<Application> {
5252
// https://midwayjs.org/docs/testing
5353
}
5454

55-
function updateConfig(mockApp: Application, config: TestConfig): void {
55+
async function updateConfig(mockApp: Application, config: TestConfig): Promise<void> {
5656
config.app = mockApp
5757
config.httpRequest = createHttpRequest(mockApp)
5858

0 commit comments

Comments
 (0)