Skip to content

Support @glimmer/component 2.2, vitest 5 and ember-vitest 0.9; drop create-app pins - #146

Merged
patricklx merged 3 commits into
mainfrom
upgrade-glimmer-vitest
Oct 23, 2026
Merged

patricklx merged 3 commits into
mainfrom
upgrade-glimmer-vitest

Conversation

@patricklx

@patricklx patricklx commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Removes the temporary pins added to bin/create-app.js in #144 and upgrades ember-tui / ember-tui-demo to the latest test deps.

  • ember-vitest 0.9 + vitest 5: ember-vitest now imports vitest/browser unconditionally (Browser Mode only). ember-tui ships a small node shim (ember-tui/test-utils/vitest-browser-shim) and the demo's vite config aliases vitest/browser to it (absolute path, so embroider doesn't reject it as an undeclared ember-vitest dependency).
    The alias is only added when the installed ember-tui ships the shim, because create-app copies this config from main and ember-tui itself comes from npm (older releases don't have it).
  • Types: ember-vitest 0.9's index only re-exports, so the demo's tests/types/ember-vitest.d.ts override now augments ember-vitest/manual and returns its own TerminalRenderingContext (merging into ember-vitest's RenderingContext can't change element from HTMLDivElement).
  • vitest 5 fs module cache: on by default and caches stale transforms of embroider virtual modules, so every run after the first fails with module was not found for app/-embroider-entrypoint.js. Disabled via test.fsModuleCache: false.
  • @glimmer/component 2.2.0: its dist imports @ember/component directly, so it needs to be inlined (deps.inline) like ember-tui.
  • create-app: install @glimmer/component, ember-vitest, vitest unpinned. New EMBER_TUI_TEMPLATE_BASE env var lets it copy the demo files from a local checkout; scripts/test-create-app.sh uses it so CI tests this branch's demo config instead of GitHub main's.

Verified locally: ember-tui lint + unit tests, each ember-tui-demo test file individually, and scripts/test-create-app.sh (generated app gets @glimmer/component 2.2.0, ember-vitest 0.9.0, vitest 5.0.5, vite 8; start + tests pass).

🤖 Generated with Claude Code

patricklx and others added 3 commits October 22, 2026 17:04
…reate-app pins

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
create-app copies the demo vite config from main, so it has to keep loading
for apps that install an ember-tui release without the shim.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@patricklx patricklx added the bug Something isn't working label Oct 23, 2026
@patricklx
patricklx merged commit 2e6eb4a into main Oct 23, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant