question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use a more sophisticated template for end-to-end testing of Create React App

See original GitHub issue

We 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:

  1. Looking at tasks/e2e.sh and learning how we test CRA
  2. Figuring out how to make it use a different template just for e2e test—not sure how I’d do that so suggestions welcome
  3. Creating that kitchensink template

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Sep 24, 2016

Let’s make it --from-template <path>. We might eventually allow remote URLs there as well 😛

1reaction
wdhortoncommented, Sep 22, 2016

I’d like to take a crack at this

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found