Skip to content

test: add enum mapping tests for enums with extra properties#13

Merged
wilmveel merged 1 commit intomainfrom
test/enum-label-property-mapping
Mar 25, 2026
Merged

test: add enum mapping tests for enums with extra properties#13
wilmveel merged 1 commit intomainfrom
test/enum-label-property-mapping

Conversation

@wilmveel
Copy link
Copy Markdown
Contributor

Summary

  • Adds test coverage for mapping between simple enums and enums with constructor properties (e.g. wirespec-generated enums with a label field)
  • Tests both directions: simple → labeled and labeled → simple

Test plan

  • shouldCompile_enumWithLabelProperty — maps FieldType (no label) to EvaluationFieldType (has label)
  • shouldCompile_enumWithLabelPropertyReverse — maps EvaluationFieldType (has label) to FieldType (no label)
  • All existing enum mapping tests still pass

🤖 Generated with Claude Code

…bel)

Covers mapping between simple enums and enums with constructor properties
like wirespec-generated enums with a label field, in both directions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@wilmveel wilmveel merged commit 6879ef6 into main Mar 25, 2026
1 check passed
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