Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Dec 18, 2024
1 parent 513deda commit 3cded02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/addons/test/src/node/test-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@ export class TestManager {
return;
}

const previousConfig = this.config;

this.config = {
...this.config,
...payload.config,
} satisfies Config;

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,
Expand Down

0 comments on commit 3cded02

Please sign in to comment.