Looking Forward to Vitest Browser Mode
summary
The talk argues that running frontend tests in a real browser avoids mismatches introduced by emulators like happy-dom; concrete bugs were found around window.getComputedStyle and CSS variables when using Vitest + happy-dom, leading to filed issues and PRs. It describes Vitest Browser Mode, which swaps the Node test runner for a browser runner that downloads and executes test files in the browser so real Web APIs and testing-library–style queries yield more reliable component tests; the feature is experimental but promising.
AI-written summary · about
