From 3cded02fcdf8e7ba2e1a6dee52d4d1c9702f9a54 Mon Sep 17 00:00:00 2001 From: Valentin Palkovic Date: Wed, 18 Dec 2024 11:08:23 +0100 Subject: [PATCH] Add tests --- code/addons/test/src/node/test-manager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/addons/test/src/node/test-manager.ts b/code/addons/test/src/node/test-manager.ts index dade6daac466..1a19e587eeea 100644 --- a/code/addons/test/src/node/test-manager.ts +++ b/code/addons/test/src/node/test-manager.ts @@ -46,6 +46,8 @@ export class TestManager { return; } + const previousConfig = this.config; + this.config = { ...this.config, ...payload.config, @@ -53,7 +55,7 @@ export class TestManager { process.env.VITEST_STORYBOOK_CONFIG = JSON.stringify(payload.config); - if (this.config.coverage !== payload.config.coverage) { + if (previousConfig.coverage !== payload.config.coverage) { try { await this.vitestManager.restartVitest({ coverage: this.config.coverage,