diff --git a/apps/frontend/src/App.test.jsx b/apps/frontend/src/App.test.jsx index 0a6b055..d2f2f90 100644 --- a/apps/frontend/src/App.test.jsx +++ b/apps/frontend/src/App.test.jsx @@ -55,6 +55,7 @@ describe('SearchView', () => { { id: 'REG001', name: 'Ibuprofeno 400mg', active_ingredient: 'Ibuprofeno', dosage: '400mg', form: 'Comprimido' }, ] vi.spyOn(globalThis, 'fetch').mockResolvedValue({ + ok: true, json: async () => medicines, }) @@ -76,6 +77,7 @@ describe('SearchView', () => { { id: 'REG001', name: 'Ibuprofeno 400mg', active_ingredient: 'Ibuprofeno', dosage: '400mg', form: 'Comprimido' }, ] vi.spyOn(globalThis, 'fetch').mockResolvedValue({ + ok: true, json: async () => medicines, })