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.
What's the right way to write Jest tests verified with Flow?
flow-typed
now has all versions of Jest: https://github.com/flowtype/flow-typed/tree/master/definitions/npm