How to make Flow aware of Jest's globals (test, expect, etc)?
Asked Answered
I

1

12

I get these Flow errors in my test files:

identifier `test`
Could not resolve name

identifier `expect`
Could not resolve name

I've installed the Jest libdef from flow-typed but it doesn't make any difference.


Update: it looks like the Jest libdef created by flow-typed is just a stub. I think the problem is that flow-typed doesn't have a libdef for Jest v0.21.x yet.

Infuse answered 14/9, 2017 at 11:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.