Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests when deprecations are enabled #20695

Conversation

NullVoxPopuli
Copy link
Sponsor Contributor

馃

/resolved templates/,
DEPRECATIONS.DEPRECATE_COMPONENT_TEMPLATE_RESOLVING.isEnabled
);
async [`@test template-only components`]() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is weird, no? What made you put that there in the first place?

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a couple things:

  • I originally was not updating these tests to use setComponenttemplate
  • I changed (per Ed's suggestion) the timing of when the deprecation is thrown to only occur if there is a found resolved template, rather than anytime layoutFor is called (this ended up simplifying the implementation in resolver.ts)

@kategengler kategengler merged commit 6f260cb into emberjs:kg-fix-run-with-deprecations-enabled May 9, 2024
27 checks passed
@NullVoxPopuli NullVoxPopuli deleted the nvp-fix-fix-run-with-deprecations-enabled branch May 9, 2024 20:11
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.

None yet

2 participants