Skip to content

stereobooster/react-context-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo of the issue with context testing

yarn
yarn test

  console.error node_modules/fbjs/lib/warning.js:33
    Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.

Explanation

Issue happens when you use react-test-renderer and Enzyme in the same test file.

Solution

Use enzyme-to-json instead of react-test-renderer.

See example of migration in this repository: branch enzyme-to-json.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published