Skip to content

Commit

Permalink
test: test add new test visualizarMetrica data Co-authored-by: Gustav…
Browse files Browse the repository at this point in the history
…o Souza <[email protected]>
  • Loading branch information
Jkluiza committed Sep 20, 2024
1 parent f5e077d commit bda17dd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/__tests__/visualizarMetrica.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ jest.mock("../services/metrica.service", () => ({
getSomaHidratacao: jest.fn(() => Promise.resolve(1500)),
}));

// Mock para database
jest.mock("../db/index", () => ({
get: jest.fn(() => ({
query: jest.fn(() => ({
fetch: jest.fn(() => Promise.resolve([])),
})),
})),
}));

// Mock para expo-router
jest.mock("expo-router", () => ({
router: {
Expand Down

0 comments on commit bda17dd

Please sign in to comment.