Skip to content

A test case for testing react + mobx, using enzyme where a warning is thrown.

Notifications You must be signed in to change notification settings

AoDev/mobx-enzyme-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mobx-enzyme-test

A test case for testing react + mobx, using enzyme where a warning is thrown.

Install

npm i

(may take a while)

Usage

npm test

Check the code

You will find both tests and components files in the src folder.

Expected result

  • Tests are passing
  • mobx-react warnings with version 3.0.1
  • mobx-react fixed warnings with version 3.0.2
[mobx-react] Warning: A re-render was triggered before the component 'UserPassword#.0.render()', was mounted. Is (another) component trying to modify state in it's constructor / getInitialState? Use componentWillMount instead.
``

About

A test case for testing react + mobx, using enzyme where a warning is thrown.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published