enzyme
enzyme copied to clipboard
JavaScript Testing utilities for React
Stacked on [#2534](https://github.com/enzymejs/enzyme/pull/2534) ([Diff against #2534](https://github.com/enzymejs/enzyme/compare/createthis:feat/support-react17...eps1lon:feat/support-react17-sebbie)) Compared to https://github.com/enzymejs/enzyme/pull/2534/: - less React 17 branching in tests (goal is 0 branching but branching for error stacks is probably fine) - some...
### Current behavior min-repro here: https://github.com/nicholasrice/enzyme-react-wrapper-update-repro Using `mount` to mount a component, calling the `update` method of the returned `ReactWrapper` instance does not seem to be forcing a re-render. With...
Fixes #2429.
### Update React 16 + enzyme-adapter-react-16 reduced use case sandbox here: https://github.com/enzymejs/enzyme/issues/2549#issuecomment-982954339 ### Current behavior React 17, using all the latest packages. I follow one of the enzyme unit test...
### Current behavior ```js import React from "react"; import { mount } from "enzyme"; import NewTagModal from "./NewTagModal"; describe("New Tag Modal", () => { let component; function mountComponent() { return...
How can i test a dyanmically/lazy loaded component on jest I have a test component which loads as ```jsx import React, { lazy, Suspense } from "react"; const Component2 =...
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.[View this repository on the Mend.io Web Portal](https://developer.mend.io/github/enzymejs/enzyme). > [!WARNING] These dependencies are deprecated: |...
I just start receiving this message to my unit tests today, although it was working fine before Cannot find module 'cheerio' from 'node_modules/enzyme/build/Utils.js' Require stack: node_modules/enzyme/build/Utils.js node_modules/enzyme/build/ShallowWrapper.js node_modules/enzyme-to-json/utils.js node_modules/enzyme-to-json/createSerializer.js node_modules/enzyme-to-json/serializer.js...
Due to recent security vulnerability in nth-checkv1.2.0 which is fetched transitively from enzyme --> cheerio --> css-select --> .... --> nth-checkv1.2.0. [email protected] removes dependency of css-select which ultimately removes dependency...
Same as https://github.com/enzymejs/enzyme/pull/2430 with TODO_17 tags removed. How working on this PR made me feel: 