How to test error.tsx page?
Unanswered
Spectacled Caiman posted this in #help-forum
Spectacled CaimanOP
I am on local development and environment and I want to test my error.tsx page. So I intentionally added exception:
But this does not redirect me error page instead it just shows warning in bottom left
// test error
throw new Error('test error')But this does not redirect me error page instead it just shows warning in bottom left
1 Reply
@Spectacled Caiman I am on local development and environment and I want to test my error.tsx page. So I intentionally added exception:
`// test error
throw new Error('test error')`
But this does not redirect me error page instead it just shows warning in bottom left
i currently use the react dev tools on dev to test the error.tsx page: https://dev.to/ninariccimarie/how-to-trigger-react-error-boundary-with-react-developer-tools-1ccg