v0.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 routedatato matching component inputs.You can now pass
disableInputBinding: truein your routing config to turn this off. When disabled, the router is provided withoutwithComponentInputBinding(), 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 ascomponentClassInstance(and uses the harness fixture for the same component).Previously,
componentClassInstanceandfixturecould 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 oncomponentClassInstance(e.g. route params likeuserId) and direct fixture access behave as expected in tests.