uppy/examples/react/package.json
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

36 lines
929 B
JSON

{
"name": "example-react",
"private": true,
"type": "module",
"scripts": {
"build": "tsc && vite build",
"test": "vitest run",
"dev": "vite",
"serve": "vite preview"
},
"dependencies": {
"@tailwindcss/vite": "^4.1.11",
"@uppy/core": "workspace:*",
"@uppy/react": "workspace:*",
"@uppy/remote-sources": "workspace:*",
"@uppy/screen-capture": "workspace:*",
"@uppy/tus": "workspace:*",
"@uppy/webcam": "workspace:*",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"tailwindcss": "^4.0.9"
},
"devDependencies": {
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.6.0",
"@vitest/browser": "^4.1.6",
"@vitest/browser-playwright": "^4.1.6",
"msw": "^2.10.4",
"playwright": "1.57.0",
"typescript": "^5.7.3",
"vite": "^7.1.11",
"vitest": "^4.1.6",
"vitest-browser-react": "^2.2.0"
}
}