From 62a36712dffd48ad539c78d7828b3e1681abedad Mon Sep 17 00:00:00 2001 From: NgoQuocViet2001 Date: Mon, 13 Jul 2026 16:06:40 +0700 Subject: [PATCH] fix: await Cypress after-run cleanup --- cypress.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cypress.config.ts b/cypress.config.ts index 914ccccadc..67e5daf83e 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -8,7 +8,9 @@ export default defineConfig({ specPattern: 'cypress/e2e/**/*.spec.*', supportFile: false, setupNodeEvents(on) { - on('after:run', () => stopBasePathServer()) + on('after:run', async () => { + await stopBasePathServer() + }) on('task', { startBasePathServer, stopBasePathServer,