Skip to content

Version Packages#24

Merged
shairez merged 1 commit into
mainfrom
changeset-release/main
Mar 18, 2026
Merged

Version Packages#24
shairez merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented Mar 15, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

vitest-browser-angular@0.4.0

Minor Changes

  • ✨ Add support for Angular 21 (by @gabrielmethot in #23)

  • ✨ add input binding to withRouting with option to disable (by @shairez in #25)

    By default, routing tests use Angular's withComponentInputBinding(), which binds route params, query params, and route data to matching component inputs.

    You can now pass disableInputBinding: true in your routing config to turn this off. When disabled, the router is provided without withComponentInputBinding(), so components won't auto-receive route data as inputs.

Patch Changes

  • 🐞🩹 routed component is now the activated route (by @shairez in #25)

    When using withRouting, the render result now correctly exposes the activated route's component as componentClassInstance (and uses the harness fixture for the same component).

    Previously, componentClassInstance and fixture could refer to a different component than the one actually rendered for the current route. Now they match the component instance that Angular Router activated for the initial (or current) route, so assertions on componentClassInstance (e.g. route params like userId) and direct fixture access behave as expected in tests.

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 0c96c59 to ec171c6 Compare March 18, 2026 10:52
@shairez shairez merged commit 6c7cd8a into main Mar 18, 2026
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