Next.js Discord

Discord Forum

Help setting up unit tests with jest

Answered
Eyebrowed Thrush posted this in #help-forum
Open in Discord
Eyebrowed ThrushOP
Hi I have spent the last couple days trying to set up jest with no luck I am starting from scratch today and would really appreciate some help I will post screenshots of my current setup and the error I am receiving

Thanks
Answered by @ts-ignore
I don't think there's any unit testing library which works well with RSC. You can opt for e2e testing
View full answer

5 Replies

Eyebrowed ThrushOP
If any more info/screenshots are needed please let me know
@@ts-ignore Maybe you need [this](https://github.com/testing-library/react-testing-library/issues/1209)
Eyebrowed ThrushOP
Hmm I had a read through and tried to implement the suggestions but I'm still getting the same error.
@Eyebrowed Thrush Hmm I had a read through and tried to implement the suggestions but I'm still getting the same error.
I don't think there's any unit testing library which works well with RSC. You can opt for e2e testing
Answer
@@ts-ignore I don't think there's any unit testing library which works well with RSC. You can opt for e2e testing
Eyebrowed ThrushOP
yeah that seems the best solution thanks