Skip to content

[CLEANUP] Use native classes in the positional args component manager tests - #21765

Merged
NullVoxPopuli merged 1 commit into
emberjs:mainfrom
NullVoxPopuli-ai-agent:nvp/custom-manager-positional-native
Oct 23, 2026
Merged

NullVoxPopuli merged 1 commit into
emberjs:mainfrom
NullVoxPopuli-ai-agent:nvp/custom-manager-positional-native

Conversation

@NullVoxPopuli-ai-agent

Copy link
Copy Markdown
Contributor

The four positional argument tests in custom-component-manager-test.js now use a native class with a native component manager. Before, they used EmberObject and factory.create().

These four tests are the only component tests outside the classic Component that read args.positional. With this change, they do not depend on EmberObject (#21674).

What changes

  • New in the test file: NativeComponentManager (capabilities 3.13, new ComponentClass(args)) and a NativeComponent base class with that manager.
  • The four tests extend NativeComponent:
    • "it can set positional params on the component instance"
    • "positional params are updated if they change (computed, arr tag)"
    • "positional params are updated if they change (computed, individual tags)"
    • "positional params are updated if they change (native)"
  • The two "(computed, ...)" tests keep @computed, because they test the dependent keys on args.positional.

The other tests in the file still use EmberObject. This PR does not change them.

Verified locally

The "Component Manager" modules pass in development (24 tests), with ALL_DEPRECATIONS_ENABLED=true (24) and in production (23).

🤖 Generated with Claude Code

The four positional args tests in custom-component-manager-test.js
now use a native component class with a native custom manager, not
EmberObject and factory.create().

The two "(computed, ...)" tests keep @computed, because the dependent
keys on args.positional are what they test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NullVoxPopuli
NullVoxPopuli marked this pull request as ready for review October 21, 2026 18:51
@NullVoxPopuli
NullVoxPopuli merged commit bd20f6a into emberjs:main Oct 23, 2026
131 of 132 checks passed
@NullVoxPopuli
NullVoxPopuli deleted the nvp/custom-manager-positional-native branch October 23, 2026 14:45
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.

3 participants