T
tRPC

Examples of Vitest with React Testing Library

Examples of Vitest with React Testing Library

Sschlabach8/9/2023
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

Looking for more? Join the community!

T
tRPC

Examples of Vitest with React Testing Library

Join Server