How to test route with params #1091
Unanswered
anthony-bernardo
asked this question in
Q&A
Replies: 1 comment
-
What is the full type error? I assume it appears when you remove the ts-ignore directive. Besides the Typescript error, does the test complete successfully? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi !
I have a route like this :
export async function GET(req: NextRequest, { params }: any, res: NextResponse) {
I'm trying to test :
but I get typescript error
Types of property 'GET' are incompatible.
Beta Was this translation helpful? Give feedback.
All reactions