mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
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.
15 lines
389 B
TypeScript
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' }],
|
|
},
|
|
},
|
|
})
|