Skip to content

fix: properly escape JSON for usage in build state functions #174

fix: properly escape JSON for usage in build state functions

fix: properly escape JSON for usage in build state functions #174

Triggered via push October 28, 2024 11:40
Status Failure
Total duration 1m 4s
Artifacts

release.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

4 errors
__tests__/helpers/build-router-state.ts > buildRouterState > should build router state with valid context: __tests__/helpers/build-router-state.ts#L24
AssertionError: expected '<script async>window.__staticRouterHy…' to include '{"loaderData":{"someData":"loaderData…' ❯ __tests__/helpers/build-router-state.ts:24:23
__tests__/helpers/build-router-state.ts > buildRouterState > should build router state with empty context: __tests__/helpers/build-router-state.ts#L39
AssertionError: expected '<script async>window.__staticRouterHy…' to include '{"errors":null}' ❯ __tests__/helpers/build-router-state.ts:39:23
__tests__/helpers/build-router-state.ts > buildRouterState > should build router state with no errors: __tests__/helpers/build-router-state.ts#L57
AssertionError: expected '<script async>window.__staticRouterHy…' to include '{"loaderData":{"someData":"loaderData…' ❯ __tests__/helpers/build-router-state.ts:57:23
Release
Process completed with exit code 1.