Skip to content

test(core): cover @nonExposed fields in the generated schema - #812

Open
o-mid wants to merge 1 commit into
theam:mainfrom
o-mid:test/non-exposed-schema
Open

o-mid wants to merge 1 commit into
theam:mainfrom
o-mid:test/non-exposed-schema

Conversation

@o-mid

@o-mid o-mid commented Sep 28, 2026 •

Copy link
Copy Markdown

Summary

@nonExposed tests only check that the field name is stored on the config. This generates a GraphQL schema from a read model and checks secretField is not on the type while publicField and id are.

The fixture is copied onto its own config and removed from the shared Magek.config before schema generation, and the generator's static schema cache is cleared afterward.

Semver: no runtime change. The change file type is none.

Fixes #701

Test plan

  • cd packages/core && rushx test (330 passing)
  • cd packages/core && rushx lint:fix

Decorator tests only check that the field name is registered. Generate a schema from a read model and check the hidden field is not on the type.

Fixes theam#701

This branch has not been deployed

No deployments
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.

Add end-to-end integration test for @nonExposed decorator

1 participant