Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

End to end testing with RTL #1467

Unanswered
TadasPa asked this question in Q&A
Discussion options

I love RTL, but I found statements that RTL is suitable for e2e tests misleading and people making wrong assumptions and solutions following it. Check docs/faq, question "Can I write unit tests with this library?" answer is "Definitely yes! You can write unit, integration, and end-to-end tests with this library."

My own experience is that people start testing page level components with default JSDOM browser like environment and end up with unmaintainable tests. JSDOM environment is very limited in terms of understanding what is actually happening in your app and what is missing when you do updates. Can't emphasize enough what pain is to write and maintain complex component test via back-box JSDOM (JSDOM is great for smaller/human brain comprehendible complexity).

Would you agree that more details on this possible problem could be given in the docs?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /