Skip to content

test: add coverage for String case-conversion functions#6315

Open
Nicoreia wants to merge 1 commit into
Effect-TS:v3from
Nicoreia:test/string-case-conversion-coverage
Open

test: add coverage for String case-conversion functions#6315
Nicoreia wants to merge 1 commit into
Effect-TS:v3from
Nicoreia:test/string-case-conversion-coverage

Conversation

@Nicoreia

Copy link
Copy Markdown

What

Adds unit tests for six previously-untested String case-conversion exports:

  • String.snakeToCamel
  • String.snakeToPascal
  • String.snakeToKebab
  • String.camelToSnake
  • String.pascalToSnake
  • String.kebabToSnake

Why

These case-conversion helpers are part of the public String API but had no
test coverage. The new tests document and lock in the expected conversions with
a shared foo_bar_baz / fooBarBaz / FooBarBaz / foo-bar-baz example
across all six directions.

Scope

Test-only — no source or behavior changes, so no changeset is included (this PR
does not cause a version bump).

Validation

  • vitest for the String suite passes locally.
  • The asserted outputs were independently re-verified against the published
    effect runtime before submission.

Disclosure

This contribution was prepared with AI assistance (Claude) and reviewed and
verified by the author before submission.

The case-conversion helpers `snakeToCamel`, `snakeToPascal`, `snakeToKebab`,
`camelToSnake`, `pascalToSnake` and `kebabToSnake` had no unit tests. Add a
`case conversion` describe block covering each, following the existing String
test style.
@changeset-bot

changeset-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a31c155

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@IMax153 IMax153 changed the base branch from main to v3 July 13, 2026 23:55
@IMax153 IMax153 added the 3.0 Used for issues, pull requests, etc. that are relevant for the `v3` branch targeting Effect v3. label Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0 Used for issues, pull requests, etc. that are relevant for the `v3` branch targeting Effect v3.

Projects

Status: Discussion Ongoing

Development

Successfully merging this pull request may close these issues.

2 participants