WordPress/wordpress-playground

Run unit tests in the browser

adamziel opened this issue · 0 comments

Vitest supports the browser mode - let's use it for more reliable testing. Right now the unit tests run in Node.js, which is a different environment than most Playgrounds run in (web browsers) https://vitest.dev/guide/browser.

Ideally, we'd run these tests both in Node.js AND in the browser.