fix: properly escape JSON for usage in build state functions #174
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.
|