Use a more sophisticated template for end-to-end testing of Create React App
See original GitHub issueWe currently test the same template
we generate by default, which is probably file, but we miss out on testing more advanced features. Ideally we should have a kitchensink
template that uses all possible features (JSX, Flow, NODE_PATH
, generators, async/await, class properties etc), and make sure that that template builds and passes tests.
If you’d like to work on it, please write in this issue so others don’t duplicate effort. The task would consist of:
- Looking at
tasks/e2e.sh
and learning how we test CRA - Figuring out how to make it use a different template just for e2e test—not sure how I’d do that so suggestions welcome
- Creating that kitchensink template
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
React end-to-end testing with Jest and Puppeteer
Designed with simplicity in mind, Jest offers a powerful and elegant API for building isolated tests, snapshot comparison, mocking, test ...
Read more >Running Tests | Create React App
react -testing-library is a library for testing React components in a way that resembles the way the components are used by end users....
Read more >How To Test Your React Apps With The React Testing Library
I'll show you how to write both unit and functional tests, and in the process, explain what code mocks are by mocking a...
Read more >Testing Environments - React
End-to-end tests are useful for testing longer workflows, especially when they're critical to your business (such as payments or signups). For these tests,...
Read more >Testing a React app, the blurred line between Unit, integration ...
Because a React app is built on components, the basic UI units, ... separation between unit tests, integration tests and end-to-end tests.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Let’s make it
--from-template <path>
. We might eventually allow remote URLs there as well 😛I’d like to take a crack at this