Andrew
Andrew
TTCTheo's Typesafe Cult
Created by Andrew on 3/28/2024 in #questions
Unhelpful useQuery error
No description
3 replies
TTCTheo's Typesafe Cult
Created by Andrew on 3/27/2024 in #questions
Increase execution duration T3 w/ TRPC
No description
15 replies
TTCTheo's Typesafe Cult
Created by Andrew on 11/19/2022 in #questions
Jest on dynamic routing
Doing unit tests on Nextjs page with route of id, how do I pass in the query of id to not get the Error: Uncaught [TypeError: Cannot read property 'query' of null] error?
import Scholarship from '../pages/scholarship/[id]'

describe('Single scholarship page', () => {
beforeEach(() => {})

it('Renders scholarship page with the correct info', async () => {
const { getByText, getByTestId } = render(<Scholarship />)
// ...
import Scholarship from '../pages/scholarship/[id]'

describe('Single scholarship page', () => {
beforeEach(() => {})

it('Renders scholarship page with the correct info', async () => {
const { getByText, getByTestId } = render(<Scholarship />)
// ...
3 replies