mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 23:46:35 +00:00
chore(ci): give the server test typecheck room, format new client files
The server's src and tests together are past 570,000 lines and the test typecheck needs about 4.3 GB, over Node's default heap; it now gets 8 GB like the test jobs. Forty new client files are formatted, and the react-hooks/refs baseline drops by the one warning a split hook removed.
This commit is contained in:
@@ -93,8 +93,12 @@ describe('cacheTourAnswer', () => {
|
||||
|
||||
it('CT-004: a packing link answer is kept, null lets it go, and an answer without one keeps the cached one', async () => {
|
||||
const link = { category: 'Hiking gear', linked_at: '2026-10-20 09:00:00' };
|
||||
expect(await cacheTourAnswer(3, { tour: tour(), waypoints, packing_link: link })).toMatchObject({ packing_link: link });
|
||||
expect(await cacheTourAnswer(3, { tour: tour({ name: 'Renamed' }), waypoints })).toMatchObject({ packing_link: link });
|
||||
expect(await cacheTourAnswer(3, { tour: tour(), waypoints, packing_link: link })).toMatchObject({
|
||||
packing_link: link,
|
||||
});
|
||||
expect(await cacheTourAnswer(3, { tour: tour({ name: 'Renamed' }), waypoints })).toMatchObject({
|
||||
packing_link: link,
|
||||
});
|
||||
expect((await cacheTourAnswer(3, { tour: tour(), waypoints, packing_link: null })).packing_link).toBeNull();
|
||||
const fresh = await cacheTourAnswer(4, { tour: tour({ place_id: 41 }), waypoints });
|
||||
expect(fresh).not.toHaveProperty('packing_link');
|
||||
|
||||
Reference in New Issue
Block a user