小编Gar*_*ren的帖子

如何将 Jest globalSetup 与 Detox 结合使用

我想globalSetupglobalTeardownJest 与 Detox 一起使用,以便 detox 设置只发生一次,但如果 init 不是 beforeAll,则 Detox 似乎会失败。

有什么建议么?

玩笑版本:22.0.4 排毒版本:6.0.4

配置:

"globalSetup": "./setUpDetox.js",
"globalTeardown": "./tearDownDetox.js",
Run Code Online (Sandbox Code Playgroud)

jestjs detox

5
推荐指数
1
解决办法
1303
查看次数

标签 统计

detox ×1

jestjs ×1