FormidableLabs / FormidableLabs/jest-next-dynamic

await findBy query is still required after preloading the lazy loaded components?

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
70
Forks
7
PR merge metrics
No merged PRs in 30d

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

### Question

```markdown
I have a lazy-loaded components and added `await preloadAll` in beforeAll and then checking the string rendered in the lazy loaded component with getBy queries. Although it works perfectly fine on local every time. On CI pipelines it breaks sometimes during peak hours. So should we still advised to use findBy variants of query after using preloadAll?
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.