标签: flowtype jest flow-typed
我在测试文件中收到了这些Flow错误:
identifier `test` Could not resolve name identifier `expect` Could not resolve name
我已经从flow-typed安装了Jest libdef,但它没有任何区别。
更新:看起来像flow-typed创建的Jest libdef只是一个存根。我认为问题是flow-typed还没有Jest v0.21.x的libdef。
答案 0 :(得分:2)
What's the right way to write Jest tests verified with Flow?
flow-typed现在拥有所有版本的Jest: https://github.com/flowtype/flow-typed/tree/master/definitions/npm
flow-typed