Please sign in to comment.
fix: runtime network/resource loading resilience fixes + restore e2e …
…tests for it (#18051) * Blocking resources with before all it statements and then running * Only making CircleCI to test production runtime for speed up in local development test * Adding missing line * Removing requirements * Fixing typo on added test * Bringing back old circleCI config * Updating Cypress tests with some conditionals to handle page redirections and safe resources like 404 * Avoid CircleCI to only test production runtime to check CI behavior * Adding rest of tests to run * Adding CircleCI configuration separate * Fixing for offline plugin so far * Fixing tests for offline flag * Adding location and should back dynamic depending on blocked paths * Adding helper function to assert on visit with click on an element being optional * Bringing back Circle CI full configuration * we don't want to assert broken behavior - we want to assert correct one, that just means we need to fix runtime * wip fixes for runtime * ugh circleCi - please run tests * dummy change * skip failing unit tests (for now) * Revert "skip failing unit tests (for now)" This reverts commit 892a378. * - make page resource status an "enum" - get rid of "failure" status (it's not clear what's the difference between failure and error) - skip some tests (they seem to enter infinite recursion and causing OOM - need to investigate) Co-authored-by: Blaine Kasten <email@example.com> * restore error, don't fall into infinite recursion, fix unit tests * fixup 404 loadPage unit test * check if ___chunkMapping has componentChunkName * remove some debug console.logs and add more detailed comments * uncomment hovering * remove console.log * Update packages/gatsby/cache-dir/__tests__/loader.js Co-Authored-By: Ward Peeters <firstname.lastname@example.org> Co-authored-by: gatsbybot <email@example.com> Co-authored-by: Michal Piechowiak <firstname.lastname@example.org> Co-authored-by: Blaine Kasten <email@example.com> Co-authored-by: Ward Peeters <firstname.lastname@example.org>
- Loading branch information
Showing with 192 additions and 107 deletions.
- +58 −28 e2e-tests/production-runtime/cypress/integration/resource-loading-resilience.js
- +37 −27 packages/gatsby/cache-dir/__tests__/dev-loader.js
- +22 −23 packages/gatsby/cache-dir/__tests__/loader.js
- +8 −2 packages/gatsby/cache-dir/dev-loader.js
- +2 −2 packages/gatsby/cache-dir/ensure-resources.js
- +56 −21 packages/gatsby/cache-dir/loader.js
- +2 −2 packages/gatsby/cache-dir/navigation.js
- +7 −2 packages/gatsby/cache-dir/production-app.js
Oops, something went wrong.