在Jasmine 3中我应该使用什么而不是合适和fdescribe?

问题描述 投票:37回答:1

我收到错误:

ERROR: 'DEPRECATION: fit and fdescribe will cause your suite to report an 'incomplete' status in Jasmine 3.0'

我为Jasmine 3.0做了一个RTFM,但它没有提到有关弃用的任何内容:https://jasmine.github.io/api/3.0/global.html#fit

angular testing jasmine karma-runner
1个回答
7
投票

根据您与fit docs的链接

fit将专注于测试或一组测试。

因此,如果你有5个测试,3it和2fit,只有2个适合将由Jasmine运行。

ERROR: 'DEPRECATION: fit and fdescribe will cause your suite to report an 'incomplete' status in Jasmine 3.0'

ERROR --> WARNING:告诉你,只有合适的'会运行,因此是一个不完整的测试。

谢谢。

© www.soinside.com 2019 - 2024. All rights reserved.