> rentaldrivego@1.0.0 test:admin > npm run test --workspace @rentaldrivego/admin > @rentaldrivego/admin@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/admin ✓ src/lib/api.test.ts (3 tests) 11ms ❯ src/lib/appUrls.test.ts (5 tests | 1 failed) 6ms ❯ src/lib/appUrls.test.ts > admin app URL resolution > resolves server app URLs from forwarded host and protocol → expected 'https://admin.example.com:3002/admin' to be 'https://admin.example.com/admin' // Object.is equality ✓ src/app/root-redirects.test.ts (1 test) 3ms ✓ src/app/favicon.ico/route.test.ts (2 tests) 21ms ✓ src/components/PublicShell.test.ts (2 tests) 3ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯ FAIL src/lib/appUrls.test.ts > admin app URL resolution > resolves server app URLs from forwarded host and protocol AssertionError: expected 'https://admin.example.com:3002/admin' to be 'https://admin.example.com/admin' // Object.is equality - Expected + Received - https://admin.example.com/admin + https://admin.example.com:3002/admin ❯ src/lib/appUrls.test.ts:31:94 29| 30| it('resolves server app URLs from forwarded host and protocol', () =… 31| expect(resolveServerAppUrl('http://localhost:3002/admin', 'admin.e… | ^ 32| }) 33| ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ Test Files 1 failed | 4 passed (5) Tests 1 failed | 12 passed (13) Start at 00:10:14 Duration 226ms (transform 118ms, setup 0ms, collect 180ms, tests 44ms, environment 0ms, prepare 305ms) npm error Lifecycle script `test` failed with error: npm error code 1 npm error path /Volumes/ExternalApps/Documents/car_management_system/apps/admin npm error workspace @rentaldrivego/admin@1.0.0 npm error location /Volumes/ExternalApps/Documents/car_management_system/apps/admin npm error command failed npm error command sh -c vitest run