Files
carmanagement/test-dashboard-output-after-db-generate.txt
T
2026-06-10 00:40:19 -04:00

57 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
> rentaldrivego@1.0.0 test:dashboard
> npm run test --workspace @rentaldrivego/dashboard
> @rentaldrivego/dashboard@1.0.0 test
> vitest run
The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
RUN v1.6.1 /Volumes/ExternalApps/Documents/car_management_system/apps/dashboard
✓ src/lib/preferences.test.ts (4 tests) 3ms
✓ src/hooks/useTeam.state.test.ts (5 tests) 3ms
✓ src/components/reservations/VehicleConditionSheet.boundary.test.ts (5 tests) 4ms
✓ src/middleware.test.ts (7 tests) 79ms
✓ src/components/ui/StatCard.test.ts (4 tests) 3ms
✓ src/lib/api.test.ts (4 tests) 83ms
✓ src/components/reservations/DamageInspectionCard.helpers.test.ts (4 tests) 4ms
src/components/VehicleCalendar.boundary.test.ts (5 tests | 1 failed) 7ms
src/components/VehicleCalendar.boundary.test.ts > VehicleCalendar helpers > builds a full week-aligned month grid with leading and trailing blanks
→ expected 2026-03-01T05:00:00.000Z to be null
✓ src/components/VehiclePricingManager.helpers.test.ts (7 tests) 4ms
✓ src/lib/dashboardPaths.test.ts (3 tests) 2ms
✓ src/lib/appUrls.test.ts (4 tests) 3ms
✓ src/components/layout/PublicShell.test.ts (2 tests) 2ms
✓ src/lib/urls.test.ts (4 tests) 24ms
✓ src/components/ui/BilingualInput.test.ts (4 tests) 2ms
✓ src/app/public-auth-pages.test.ts (3 tests) 2ms
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
FAIL src/components/VehicleCalendar.boundary.test.ts > VehicleCalendar helpers > builds a full week-aligned month grid with leading and trailing blanks
AssertionError: expected 2026-03-01T05:00:00.000Z to be null
src/components/VehicleCalendar.boundary.test.ts:32:22
30| const march = calendarGridDays(2026, 3)
31| expect(march).toHaveLength(35)
32| expect(march[0]).toBeNull()
| ^
33| expect(march[6]?.getDate()).toBe(7)
34| expect(march.at(-1)).toBeNull()
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
Test Files 1 failed | 14 passed (15)
Tests 1 failed | 64 passed (65)
Start at 00:08:07
Duration 754ms (transform 742ms, setup 0ms, collect 1.64s, tests 225ms, environment 1ms, prepare 1.25s)
npm error Lifecycle script `test` failed with error:
npm error code 1
npm error path /Volumes/ExternalApps/Documents/car_management_system/apps/dashboard
npm error workspace @rentaldrivego/dashboard@1.0.0
npm error location /Volumes/ExternalApps/Documents/car_management_system/apps/dashboard
npm error command failed
npm error command sh -c vitest run