- Add config_test.go (5 tests for env parsing) - Add middleware_test.go (16 tests for CORS, Auth, Gzip, Logger) - Add usecase_test.go (30+ tests for business logic) - Add payments_test.go (6 tests for MercadoPago gateway) Coverage: config 100%, middleware 95.9%, payments 100%, usecase 64.7% feat(marketplace): add test framework and new pages - Setup Vitest with jsdom environment - Add cartStore.test.ts (15 tests for Zustand store) - Add usePersistentFilters.test.ts (5 tests for hook) - Add apiClient.test.ts (7 tests for axios client) - Add Orders page with status transitions - Add Inventory page with stock adjustments - Add Company page with edit functionality - Add SellerDashboard page with KPIs Total marketplace tests: 27 passing
38 lines
984 B
JSON
38 lines
984 B
JSON
{
|
|
"name": "marketplace-front",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest",
|
|
"test:coverage": "vitest run --coverage"
|
|
},
|
|
"dependencies": {
|
|
"@mercadopago/sdk-react": "^1.0.6",
|
|
"axios": "^1.7.4",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-router-dom": "^6.26.0",
|
|
"react-window": "^1.8.10",
|
|
"zustand": "^4.5.5"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.1",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/react": "^18.3.7",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@types/react-window": "^1.8.8",
|
|
"@vitejs/plugin-react": "^4.7.0",
|
|
"autoprefixer": "^10.4.20",
|
|
"jsdom": "^27.3.0",
|
|
"postcss": "^8.4.47",
|
|
"tailwindcss": "^3.4.10",
|
|
"typescript": "^5.6.2",
|
|
"vite": "^5.4.3",
|
|
"vitest": "^4.0.16"
|
|
}
|
|
}
|