Skip to content

Modernize integration test templates - #559

Draft
NullVoxPopuli-ai-agent wants to merge 5 commits into
ember-learn:masterfrom
NullVoxPopuli-ai-agent:modern-hbs-import
Draft

Modernize integration test templates#559
NullVoxPopuli-ai-agent wants to merge 5 commits into
ember-learn:masterfrom
NullVoxPopuli-ai-agent:modern-hbs-import

Conversation

@NullVoxPopuli-ai-agent

Copy link
Copy Markdown

Modernizes the integration test templates:

  • import hbs from 'htmlbars-inline-precompile'import { hbs } from 'ember-cli-htmlbars' (six files)
  • Curly component invocations → angle brackets in es-button-test and es-card-test ({{es-button label=this.label}}<EsButton @label={{this.label}} />, etc.)

These go together: templates under the old import were invisible to ember-template-lint, so the curly invocations never got flagged. The new import brings them under lint, and the angle-bracket conversion makes them pass — no rule allowances needed.

Note

Draft until #555 lands — es-button-test's import block is touched by both, so this stacks on it. Only the last commit is the reviewable diff here.

Part of the incremental path toward a v2 addon (#551 is the reference).

Test plan

  • pnpm lint (js, hbs, css, format) passes — including the newly-linted test templates
  • pnpm exec ember test — 27 tests, 0 failures

🤖 Generated with Claude Code

NullVoxPopuli-ai-agent and others added 5 commits August 6, 2026 19:56
broccoli-merge-trees, static-postcss-addon-tree, ember-named-blocks-polyfill,
lodash.get, and ember-native-dom-helpers are declared but not referenced
anywhere in the addon, dummy app, or tests. Named blocks are native in all
supported Ember versions, so the polyfill was inert.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The one usage was didInsert/willDestroy in es-header-navbar-link. A single
modifier() now captures the element and returns the listener cleanup, which
also removes the no-at-ember-render-modifiers lint suppressions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
import { service } is the recommended form since Ember 4.1; inject is
removed in newer majors.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The only use was a single spy asserting es-button's onClicked fires;
qunit's assert.step/verifySteps covers that without a dependency.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Swaps the deprecated htmlbars-inline-precompile import for
ember-cli-htmlbars and converts es-button/es-card test invocations to
angle brackets. Templates under the old import were invisible to
ember-template-lint; the new import brings them under lint and the
angle-bracket conversion makes them pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for ember-styleguide ready!

Name Link
🔨 Latest commit 72c39f2
🔍 Latest deploy log https://app.netlify.com/projects/ember-styleguide/deploys/6a754bd3af3f1600088da764
😎 Deploy Preview https://deploy-preview-559--ember-styleguide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@NullVoxPopuli-ai-agent NullVoxPopuli-ai-agent mentioned this pull request Aug 7, 2026
2 tasks
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