Skip to content

test(web): clean up rendered trees globally - #20

Merged
lucifer1004 merged 1 commit into
pku-typst:mainfrom
lucifer1004:fix/vitest-dom-cleanup
Jul 21, 2026
Merged

test(web): clean up rendered trees globally#20
lucifer1004 merged 1 commit into
pku-typst:mainfrom
lucifer1004:fix/vitest-dom-cleanup

Conversation

@lucifer1004

Copy link
Copy Markdown
Contributor

Summary

  • register Testing Library cleanup once in Vitest setup
  • remove redundant per-file cleanup hooks
  • prevent leaked timers and subscriptions from firing after jsdom teardown

Validation

  • mise exec node@24 -- npm test (100 files, 430 tests)
  • mise exec node@24 -- npm run build

@lucifer1004
lucifer1004 merged commit e0a73f4 into pku-typst:main Jul 21, 2026
9 checks passed
@lucifer1004
lucifer1004 deleted the fix/vitest-dom-cleanup branch July 21, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant