Comments (5)
Since this repository is not being maintained as far as we can see, take the initiative and create a new npm package to handle these cases. This version is compatible with the latest version of Jest.
https://github.com/vicasas/jest-prop-types
from jest-prop-type-error.
Any update on it?
from jest-prop-type-error.
so react now uses sprintf style strings
a "fix" is message = require('util').format(message, ...args);
in index.js
(I did some debugging, it'll be like https://github.com/facebook/react/blob/cae635054e17a6f107a39d328649137b83f25972/fixtures/legacy-jsx-runtimes/react-15/cjs/react-jsx-dev-runtime.development.js#L296 but not that exact line)
The other problem is that the message is only spit out once, so it won't fail multiple tests
I'm going to do another route, but figured i'd share it for usefulness.
from jest-prop-type-error.
https://github.com/facebook/prop-types/blob/be165febc8133dfbe2c45133db6d25664dd68ad8/checkPropTypes.js would be the actual errors
from jest-prop-type-error.
Hey folks. I am seeing the same issue since I upgraded to React 17. Any updates on this?
from jest-prop-type-error.
Related Issues (4)
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 jest-prop-type-error.