与茉莉花的柏树

发布于 2025-01-30 18:18:48 字数 111 浏览 1 评论 0原文

我们正在将现有量角脚本(带有茉莉框架)迁移到柏树的过程。 我想知道我们是否也可以在柏树中使用茉莉花。就像柏树默认情况下使用摩卡咖啡一样,因此需要澄清,如果我们可以与柏树一起安装茉莉花依赖,以使用框架定义测试。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

狠疯拽 2025-02-06 18:18:48

我不这么认为。 Cypress修改/修改摩卡钩(例如totreach(),以及chai 期望()将与其框架一起使用。

关于茉莉花有什么您不用柏树开箱即用的吗?我相信Expect()语法可能会有所不同,如果您有太多的茉莉花风格更改的期望可以更改,则可以添加自定义的Chai表达式,以便它们可以在不修改的情况下工作。

I don't think so. Cypress modifies/patches the Mocha hooks like beforeEach() and also the chai expect() 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文