GithubHelp home page GithubHelp logo

Comments (5)

martinstark avatar martinstark commented on June 4, 2024 1

This has now become an issue when using Redux 7.x, which uses React.memo internally. Our shallow rendered snapshots have turned into:

    -   <Connect(TheComponentName)>
    +   <Component>

from enzyme-to-json.

sormy avatar sormy commented on June 4, 2024

This is well known issue with babel react preset. Put React.memo() on separate line like:

export let MainMenu = function() {...}
MainMenu = React.memo(MainMenu)

from enzyme-to-json.

nataly-chobat avatar nataly-chobat commented on June 4, 2024

Yeah, we faced the same issue. It will be super perfect if it is possible to fix and display component name instead of

from enzyme-to-json.

fender avatar fender commented on June 4, 2024

Same issue for us too. Got around it with:

import React, { memo } from 'react';
const Tile = props => { ... };
export default memo(Tile);

from enzyme-to-json.

VincentLanglet avatar VincentLanglet commented on June 4, 2024

It's maybe possible to make a PR with this comment:
jestjs/jest#8122 (comment)

PR are welcomed

from enzyme-to-json.

Related Issues (20)

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.