与茉莉花的柏树
我们正在将现有量角脚本(带有茉莉框架)迁移到柏树的过程。 我想知道我们是否也可以在柏树中使用茉莉花。就像柏树默认情况下使用摩卡咖啡一样,因此需要澄清,如果我们可以与柏树一起安装茉莉花依赖,以使用框架定义测试。
We are in a process of migrating existing Protractor scripts(with Jasmine Framework) to Cypress.
I would like to know if we can use the Jasmine in Cypress also. As, Cypress by default uses Mocha.., so need a clarification if we can install Jasmine dependences along with Cypress to define the tests with Framework.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不这么认为。 Cypress修改/修改摩卡钩(例如
totreach()
,以及chai 期望()将与其框架一起使用。关于茉莉花有什么您不用柏树开箱即用的吗?我相信
Expect()
语法可能会有所不同,如果您有太多的茉莉花风格更改的期望可以更改,则可以添加自定义的Chai表达式,以便它们可以在不修改的情况下工作。I don't think so. Cypress modifies/patches the Mocha hooks like
beforeEach()
and also the chaiexpect()
to work with their framework.Is there anything about Jasmine that you don't get out of the box with Cypress? I believe the
expect()
syntax may be different, if you have too many Jasmine-style expectations to change you may be able to add custom Chai expressions so that they work without modification.