linting docs + some fixes go claude and gemini
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 16m0s

This commit is contained in:
2026-01-09 22:38:57 -08:00
parent ea46f66c7a
commit e14c19c112
25 changed files with 3840 additions and 464 deletions

View File

@@ -54,7 +54,10 @@ describe('RecipeSuggester Component', () => {
// Add a delay to ensure the loading state is visible during the test
mockedApiClient.suggestRecipe.mockImplementation(async () => {
await new Promise((resolve) => setTimeout(resolve, 50));
return { ok: true, json: async () => ({ suggestion: mockSuggestion }) } as Response;
return {
ok: true,
json: async () => ({ suggestion: mockSuggestion }),
} as Response;
});
const button = screen.getByRole('button', { name: /Suggest a Recipe/i });
@@ -120,7 +123,7 @@ describe('RecipeSuggester Component', () => {
expect(logger.error).toHaveBeenCalledWith(
{ error: networkError },
'Failed to fetch recipe suggestion.'
'Failed to fetch recipe suggestion.',
);
console.log('TEST: Network error caught and logged');
});
@@ -196,7 +199,7 @@ describe('RecipeSuggester Component', () => {
expect(logger.error).toHaveBeenCalledWith(
{ error: 'Something weird happened' },
'Failed to fetch recipe suggestion.'
'Failed to fetch recipe suggestion.',
);
});
});
});