【发布时间】:2020-08-26 19:25:25
【问题描述】:
我不清楚在 Detox 中运行测试之前是否有必要/最佳实践致电 device.reloadReactNative()。这些示例使它看起来像是最佳实践,但我不清楚。
比如在beforeAll中调用,有必要吗?
describe('Example', () => {
beforeAll(async () => {
await device.reloadReactNative();
});
it('render a tappable list of posts', async () => {...});
});
我读到here 说最好调用它,但我不确定来源的可靠性。
【问题讨论】:
标签: detox