
> rentaldrivego@1.0.0 test:frontends
> npm run test:dashboard && npm run test:admin && npm run test:marketplace


> rentaldrivego@1.0.0 test:dashboard
> npm run test --workspace @rentaldrivego/dashboard


> @rentaldrivego/dashboard@1.0.0 test
> vitest run

[33mThe CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.[39m

 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/middleware.test.ts  (7 tests) 78ms
 ✓ src/components/reservations/VehicleConditionSheet.boundary.test.ts  (5 tests) 2ms
 ✓ src/components/ui/StatCard.test.ts  (4 tests) 4ms
 ✓ src/lib/api.test.ts  (4 tests) 77ms
 ✓ src/components/reservations/DamageInspectionCard.helpers.test.ts  (4 tests) 3ms
 ✓ src/components/VehiclePricingManager.helpers.test.ts  (7 tests) 3ms
 ❯ src/components/VehicleCalendar.boundary.test.ts  (5 tests | 1 failed) 11ms
   ❯ 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/lib/dashboardPaths.test.ts  (3 tests) 1ms
 ✓ src/lib/urls.test.ts  (4 tests) 38ms
 ✓ src/lib/appUrls.test.ts  (4 tests) 2ms
 ✓ src/components/ui/BilingualInput.test.ts  (4 tests) 2ms
 ✓ src/components/layout/PublicShell.test.ts  (2 tests) 4ms
 ✓ 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:11:10
   Duration  760ms (transform 501ms, setup 0ms, collect 1.41s, tests 233ms, environment 9ms, prepare 1.45s)

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
