uppy/examples/react/vitest.config.ts
Prakash 3f0dd05a4e Upgrade vitest to v4
Bump vitest and @vitest/browser from ^3.2.4 to ^4.1.6.

Vitest 4 reworked the Mock type: ReturnType<typeof vi.fn> now resolves to
Mock<Procedure | Constructable>, a union with a constructor signature that
TypeScript no longer treats as directly callable (TS2348). Switch the core
test-mock helpers to an explicit callable Mock type.
2026-05-21 22:24:54 +05:30

15 lines
389 B
TypeScript

import tailwindcss from '@tailwindcss/vite'
import react from '@vitejs/plugin-react'
import { playwright } from '@vitest/browser-playwright'
import { defineConfig } from 'vitest/config'
export default defineConfig({
plugins: [react(), tailwindcss()],
test: {
browser: {
enabled: true,
provider: playwright(),
instances: [{ browser: 'chromium' }],
},
},
})