Comments (4)
React has some built-in testing tools, including DOM event simulators that you can call. There's a very good chance I'll add examples of it here, since I've written them for other projects, anyway. =)
from react-pure-component-starter.
That would be awesome. I did try to use TestUtils.Simulate.click
together with Cheerio without any luck. React does not complain about the lack of a DOM when using Cheerio though.
from react-pure-component-starter.
Yeah, the simulate tools need live DOM. You can use JSDom to construct real DOM with React virtual event support.
from react-pure-component-starter.
If you'd like to add a working example here, I'd welcome a PR. =)
from react-pure-component-starter.
Related Issues (15)
- Compatible with Redux Async pattern? HOT 3
- CircleCI build fail HOT 2
- Question HOT 3
- Latest ESLint changed rule names
- Hot reloading HOT 6
- devServer.js config with environment variable HOT 15
- Windows is not supported HOT 4
- Dependency injection: just the React instance? HOT 1
- Webpack error "Unexpected token" HOT 8
- typeError after running `npm t` or `npm run watch`
- React instance injection ? HOT 5
- using enzyme and cherrio HOT 2
- Update babel
- Testing nested components HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-pure-component-starter.