Skip to content

Modernize the test harness: vite + ember-source 7 - #132

Merged
NullVoxPopuli merged 2 commits into
mainfrom
nvp/update-tests
Jul 28, 2026
Merged

NullVoxPopuli merged 2 commits into
mainfrom
nvp/update-tests

Conversation

@NullVoxPopuli

Copy link
Copy Markdown
Contributor

Follows the test harness that ember.nvp generates (minimal-app base + qunit layer), getting the tests running on ember 7+.

test-app

  • vite 8 + @nullvoxpopuli/ember-vite replaces ember-cli / broccoli
  • ember-source@^7.0.0 (resolves to 7.1.0), ember-strict-application-resolver, .gts route templates
  • ember-qunit@^9 + testem ci running against the vite build output (build:test → test:ci, same scripts as the nvp qunit layer)
  • type checking via @glint/ember-tsc + ember-source/types, replacing @types/ember* + glint 1 in the test app (the library's own build/lint pipeline is unchanged)
  • the application template now carries a small anchor-click handler instead of ember-primitives' @properLinks — visitAllLinks needs plain in-app anchors to route through the router, and this avoids pulling ember-primitives' whole peer graph into the harness
  • tests themselves are unchanged (still import @universal-ember/test-support through the injected workspace dep, so they exercise the built dist)

CI

  • Lints + Tests jobs on node 24 (nvp github-actions layer shape)
  • the ember-try matrix (lts-4.12 … canary) is removed — ember-try drove the classic ember-cli build and doesn't apply to the vite harness; the suite now runs against ember-source 7.x

The published package is untouched: same rollup + glint 1 build, same peerDependencies (ember-source >= 3.28).

All 5 tests pass locally on ember-source 7.1.0, and pnpm lint passes across the workspace.

🤖 Generated with Claude Code

NullVoxPopuli and others added 2 commits July 28, 2026 11:10
Rebuilds the test-app following ember.nvp's minimal-app + qunit layer:

- vite 8 + @nullvoxpopuli/ember-vite instead of ember-cli/broccoli
- ember-source 7.x, ember-strict-application-resolver, gts route templates
- ember-qunit 9 + testem ci against the vite build output
- @glint/ember-tsc (with ember-source's own types) for type checking,
  replacing @types/ember* + glint 1 in the test app
- a local anchor-click handler in the application template replaces
  ember-primitives' @properLinks (visitAllLinks needs in-app links to
  route through the router)

CI drops the ember-try matrix (ember-try doesn't apply to the vite
harness) in favor of Lints + Tests jobs on node 24.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Replaces the hand-rolled anchor-click handler with the @properLinks
router decorator (as the classic test-app had), upgrading
ember-primitives to a version compatible with ember-source 7 and
adding its ember-modifier / ember-resources peers.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@NullVoxPopuli
NullVoxPopuli merged commit 6e5cf67 into main Jul 28, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 28, 2026
@NullVoxPopuli
NullVoxPopuli deleted the nvp/update-tests branch July 28, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant