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.

Add React support

See original GitHub issue

Users who write awesome React apps should be able to use Stryker to test their apps.

Todo list:

  • Support mutating modern JS code (stryker-javascript-mutator plugin)
  • Support Babel projects (stryker-babel-transpiler plugin)
  • Don’t crash when users try to mutate JSX #545
  • Support Webpack projects (@Archcry)
  • Test React projects

Do you have a React app? Please let us know!

It would be awesome if it’s open source but that’s not a requirement.

Known users/setups: @CrazyBS: React, Redux, Babel, Karma, Mocha (#101) @SxMShaDoW create-react-app -> React, Babel, Jest (#133) @Venkat-18 React, Jest

The post above will be kept up-to-date and is subject to change!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
nabilnaffarcommented, Jan 14, 2018

+Add CSS-modules loader support

Error: Cannot find module './Button.css' from 'Button.js'
1reaction
wmeintscommented, Apr 26, 2018

I was able to run mutation tests on a combination of Typescript and React created using create-react-app --scripts-version react-scripts-ts. I didn’t need to eject it.

I use mutator: 'typescript' and jest as test framework. I don’t use the transpilers: ['webpack'] since that’s not required for the combination I use.

Didn’t experience any problems with that setup.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add React to a Website
In this section, we will show how to add a React component to an existing HTML page. You can follow along with your...
Read more >
Create a New React App
Use an integrated toolchain for the best user and developer experience. This page describes a few popular React toolchains which help with tasks...
Read more >
Add React to a Website - React Docs
This guide shows how to add some “sprinkles of interactivity” to an existing HTML page. Try this out with your own website or...
Read more >
Getting Started - React
Whether you want to get a taste of React, add some interactivity to a simple ... React-powered app, the links in this section...
Read more >
ReactDOM – React
React supports all modern browsers, although some polyfills are required for older versions. Note. We do not support older browsers that don't support...
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