fix: Fairness when routing #45885
Annotations
10 errors
Run yarn test -- --no-isolate:
packages/lib/bookings/findQualifiedHosts.test.ts#L80
AssertionError: expected { qualifiedHosts: [ { …(5) }, …(1) ] } to strictly equal { …(2) }
- Expected
+ Received
Object {
- "fallbackHosts": Array [],
"qualifiedHosts": Array [
Object {
"createdAt": 2025-01-29T20:49:53.555Z,
"isFixed": true,
"priority": undefined,
"user": Object {
"credentials": Array [],
"email": "[email protected]",
"id": 2,
"userLevelSelectedCalendars": Array [],
},
"weight": undefined,
},
Object {
"createdAt": 2025-01-29T20:49:53.555Z,
"isFixed": false,
"priority": undefined,
"user": Object {
"credentials": Array [],
"email": "[email protected]",
"id": 1,
"userLevelSelectedCalendars": Array [],
},
"weight": undefined,
},
],
}
❯ packages/lib/bookings/findQualifiedHosts.test.ts:80:20
|
Run yarn test -- --no-isolate:
packages/lib/bookings/getRoutedUsers.test.ts#L19
TypeError: getRoutedHostsWithContactOwnerAndFixedHosts is not a function
❯ packages/lib/bookings/getRoutedUsers.test.ts:19:20
|
Run yarn test -- --no-isolate:
packages/lib/bookings/getRoutedUsers.test.ts#L28
TypeError: getRoutedHostsWithContactOwnerAndFixedHosts is not a function
❯ packages/lib/bookings/getRoutedUsers.test.ts:28:20
|
Run yarn test -- --no-isolate:
packages/lib/bookings/getRoutedUsers.test.ts#L37
TypeError: getRoutedHostsWithContactOwnerAndFixedHosts is not a function
❯ packages/lib/bookings/getRoutedUsers.test.ts:37:20
|
Run yarn test -- --no-isolate:
packages/lib/bookings/getRoutedUsers.test.ts#L51
TypeError: getRoutedHostsWithContactOwnerAndFixedHosts is not a function
❯ packages/lib/bookings/getRoutedUsers.test.ts:51:20
|
Run yarn test -- --no-isolate:
packages/lib/bookings/getRoutedUsers.test.ts#L60
TypeError: getRoutedHostsWithContactOwnerAndFixedHosts is not a function
❯ packages/lib/bookings/getRoutedUsers.test.ts:60:20
|
Run yarn test -- --no-isolate:
apps/web/test/lib/getSchedule.test.ts#L406
Error: has timeslots for 2024-05-23
❯ apps/web/test/lib/getSchedule.test.ts:406:36
|
Run yarn test -- --no-isolate:
apps/web/test/lib/getSchedule.test.ts#L2297
Error: has incorrect timeslots for 2024-05-23.
- Expected
+ Received
Array [
+ "2024-05-23T04:30:00.000Z",
+ "2024-05-23T05:30:00.000Z",
+ "2024-05-23T06:30:00.000Z",
+ "2024-05-23T07:30:00.000Z",
+ "2024-05-23T08:30:00.000Z",
+ "2024-05-23T09:30:00.000Z",
+ "2024-05-23T10:30:00.000Z",
"2024-05-23T11:30:00.000Z",
"2024-05-23T12:30:00.000Z",
"2024-05-23T13:30:00.000Z",
"2024-05-23T14:30:00.000Z",
"2024-05-23T15:30:00.000Z",
]
❯ apps/web/test/lib/getSchedule.test.ts:2297:24
|
Run yarn test -- --no-isolate:
packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.ts#L160
Error: no_available_users_found_error
❯ Module.ensureAvailableUsers packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.ts:160:11
❯ handler packages/features/bookings/lib/handleNewBooking.ts:642:26
❯ packages/features/bookings/lib/handleNewBooking/global-booking-limits.test.ts:181:32
|
Run yarn test -- --no-isolate:
packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.ts#L160
Error: no_available_users_found_error
❯ Module.ensureAvailableUsers packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.ts:160:11
❯ handler packages/features/bookings/lib/handleNewBooking.ts:642:26
❯ packages/features/bookings/lib/handleNewBooking/global-booking-limits.test.ts:272:32
|
Loading