Skip to content

test: add unit tests for getClientConfig#6851

Open
Jeniter wants to merge 1 commit into
mainfrom
test/get-client-config
Open

test: add unit tests for getClientConfig#6851
Jeniter wants to merge 1 commit into
mainfrom
test/get-client-config

Conversation

@Jeniter

@Jeniter Jeniter commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

What

Adds a focused unit-test file for getClientConfig() in app/config/client.ts (client-side path).

Covered behaviour:

  • returns an empty object when no config meta tag is present
  • parses the JSON payload from the config meta tag

Notes

  • Additive only — no existing files are modified or removed.
  • yarn test:ci passes locally.

Part of a series of small QA-only PRs adding unit coverage for pure helpers.

Adds a small, focused, additive unit-test file (test/get-client-config.test.ts).
No existing files are modified or removed. yarn test:ci passes locally.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant