schlabach
schlabach11mo ago

Examples of Vitest with React Testing Library

Does anyone have examples of how to mock data from tRPC procedure calls? I have client components that are fetching data using tRPC , and I want to run integration tests. I have been attempting to use vi.mock() to mock this data but I haven't gotten it to work correctly. Thanks in advance! https://vitest.dev/guide/mocking.html
Vitest
A blazing fast unit test framework powered by Vite
0 Replies
No replies yetBe the first to reply to this messageJoin