test: switch runner to browser mode

- Run tests in native browser instead of using jsdom
This commit is contained in:
2026-02-04 21:25:34 -03:00
parent 1502418cfa
commit f89fe2e323
4 changed files with 165 additions and 0 deletions

16
vitest-base.config.ts Normal file
View File

@@ -0,0 +1,16 @@
// Learn more about Vitest configuration options at https://vitest.dev/config/
import { playwright } from '@vitest/browser-playwright';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
browser: {
provider: playwright(),
enabled: true,
instances: [
{ browser: 'chromium' },
],
},
}
});