Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Use flow-typed for flow checks in jest #1890

Closed
wants to merge 1 commit into from

Conversation

niveditc
Copy link
Contributor

@niveditc niveditc commented Oct 8, 2018

Summary

I enabled strict flow checks in bbd3ef1 and this broke the flow check in Travis CI because jest mocks are unable to correctly use flow. I referenced this Stack Overflow thread for Jest which says that importing flow-typed is the way to go for this.

The other thing we could do is not flow type this mock file.

Test Plan

yarn run flow
yarn run lint
yarn run test

@niveditc
Copy link
Contributor Author

niveditc commented Oct 8, 2018

Actually, I think this bloats the project quite a bit. Let's hold off for now & I'll unstrict the file instead

@niveditc niveditc closed this Oct 8, 2018
@claudiopro
Copy link
Contributor

@niveditc reverting sounds like the right call as we prepare a change that passes CI

facebook-github-bot pushed a commit that referenced this pull request Oct 9, 2018
Summary:
**Summary**

Flow typing this file breaks Travis CI. See also discussion in #1890

**Test Plan**
`yarn run flow`
Pull Request resolved: #1891

Reviewed By: mjhu

Differential Revision: D10250894

Pulled By: mjhu

fbshipit-source-id: f6a3a54a8b2d2f2f589a035e42f1c743afd638b2
@niveditc niveditc deleted the fix-travis branch October 15, 2018 01:13
jdecked pushed a commit to twitter-forks/draft-js that referenced this pull request Oct 9, 2019
Summary:
**Summary**

Flow typing this file breaks Travis CI. See also discussion in facebookarchive#1890

**Test Plan**
`yarn run flow`
Pull Request resolved: facebookarchive#1891

Reviewed By: mjhu

Differential Revision: D10250894

Pulled By: mjhu

fbshipit-source-id: f6a3a54a8b2d2f2f589a035e42f1c743afd638b2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants