Code Monkey home page Code Monkey logo

Comments (5)

vicasas avatar vicasas commented on June 12, 2024 1

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.

raualvron avatar raualvron commented on June 12, 2024

Any update on it?

from jest-prop-type-error.

halkeye avatar halkeye commented on June 12, 2024

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.

halkeye avatar halkeye commented on June 12, 2024

https://github.com/facebook/prop-types/blob/be165febc8133dfbe2c45133db6d25664dd68ad8/checkPropTypes.js would be the actual errors

from jest-prop-type-error.

svenjungnickel avatar svenjungnickel commented on June 12, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.