Morraez
TTCTheo's Typesafe Cult
•Created by Morraez on 6/14/2023 in #questions
Mocking TRPC api with Jest.mock
Im trying to mock the api to create my first test using the t3 stack. It is always undefined. here is my config
ts.config
jest.config.mjs
The path to the api in the file
import { api } from "~/config/api";
My test mock
failed test
2 replies
TTCTheo's Typesafe Cult
•Created by Morraez on 5/13/2023 in #questions
T3 for a chat app
Although I don't remember the exact video now. I remember Theo saying that the t3 stack would not be optimal for an application that constantly updates it's data. I assumed this meant something like a chat app that relies heavily on web sockets. If I am correct here, could someone help me understand why using t3 app is not optimal for this type of app? Also what should I use instead?
17 replies