【发布时间】:2019-07-14 01:29:15
【问题描述】:
release notes for Jest 24 突出显示了我想使用的一个新功能:test.todo。但是,我终生无法使用它。
例如,我想在我的 subscriptions.test.ts 文件中勾画出测试,所以我创建了以下内容:
describe('Subscription Tests', () => {
test.todo('... a name');
});
TypeScript 编译器随即在todo 下方显示一条红线,表示Property 'todo' does not exist on type 'It'.
我确定我遗漏了一些明显的东西,但此时我已经碰壁了。有人可以帮忙吗?
【问题讨论】:
-
你也更新
@types/jest了吗?todo是 DefinitelyThere。
标签: javascript typescript jestjs ts-jest