Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React hooks test cases part 1 -- useLayoutEffect #2121

Merged
merged 1 commit into from
May 11, 2019

Conversation

chenesan
Copy link
Contributor

Related to #2011 .

Added useLayoutEffect tests with almost the same flow except that the component using useLayoutEffect instead useEffect.

The shallow test is also skipped due to facebook/react#15275 . After that resolves we should reopen those skipped tests.

Also reset the timeout of setTimeout in test from 1e3 to 100 -- hope to make tests a little sooner.

Also reduce the timeout from 1e3 to 100.

Skip shallow tests until [shallow renderer can run useEffect](facebook/react#15275) is fixed.
@chenesan chenesan mentioned this pull request May 11, 2019
14 tasks
@ljharb ljharb force-pushed the react-hooks-use-layout-effect branch from 3d0983b to 1b85181 Compare May 11, 2019 02:48
@ljharb ljharb merged commit 1b85181 into enzymejs:master May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants