Skip to content

sawyerh/enzyme-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

npm install

Recreating the bug

Run:

npm test

Expected result: The test passes and the console logs componentDidUpdate

What actually happens: The test fails and nothing is logged from lifecycle methods

Other test scenarios

Open scripts/Foo.test.jsx and uncomment the other test scenarios. These work as expected. There are two other scenarios:

  1. Using mount to render the component
  2. Using shallow to render the component and passing in lifecycleExperimental: true as an option (which should be the default according to the docs)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published