test: switch runner to browser mode
- Run tests in native browser instead of using jsdom
This commit is contained in:
16
vitest-base.config.ts
Normal file
16
vitest-base.config.ts
Normal 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' },
|
||||
],
|
||||
},
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user