How to make Flow aware of global Jest balls (test, wait, etc.)?

I get these stream errors in my test files:

identifier `test`
Could not resolve name

identifier `expect`
Could not resolve name

I installed Jest libdef from a string type, but that doesn't make any difference.


Update: It looks like the Jest libdef created using a typed stream is just a stub. I think the problem is that in streaming mode there is no libdef for Jest v0.21.x.

+6
source share

All Articles