Skip to content

Commit

Permalink
feat: add useSSR mock to fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurFerrao committed Nov 7, 2024
1 parent 5e979da commit e59f167
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions react/__mocks__/vtex.pixel-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ const PixelContext = createContext({ push: () => undefined })
export const usePixel = () => {
return useContext(PixelContext)
}

export const usePixelEventCallback = () => {}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const useSSR = () => jest.fn()

0 comments on commit e59f167

Please sign in to comment.