Replies: 2 comments
-
As part of version 15.0, the Feature testing API documentation has received an overhaul. The feature testing guide has been improved, simplified, and a Recipes section has been added with recipes for using either the Spectacular feature harness or Angular Testing Library. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The Pipe testing API got support for standalone pipes in Spectacular 14.1. However, an internal change in Angular meant that while standalone pipe testing worked with Spectacular 14.1 and Angular 15.0, you need Spectacular 15.0 with Angular 15.1-15.2. Always match your major version of Spectacular with your major version of Angular if possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
15.0.0 (2023-08-08)
Features
SpectacularAppComponent
is a standalone Angular component (feat(spectacular)!: release 15.0.0-alpha.0 #68)InjectOptions
toSpectacularApplicationHarness#inject
is supported (feat(spectacular)!: release 15.0.0-alpha.0 #68)InjectOptions
toSpectacularFeatureHarness#inject
is supported (feat(spectacular)!: release 15.0.0-alpha.0 #68)InjectOptions
toSpectacularPipeHarnes#inject
is supported (feat(spectacular)!: release 15.0.0-alpha.0 #68)provideSpectacularFeatureTest
requires aroutes
option and optionally accepts thewithInitialFeatureNavigation
feature and Angular Router features (feat(spectacular)!: add requiredroutes
option and optional testing features forprovideSpectacularFeatureTest
#76)provideSpectacularFeatureTest
returns(EnvironmentProviders | Provider)[]
(feat(spectacular)!: add requiredroutes
option and optional testing features forprovideSpectacularFeatureTest
#76)provideSpectacularFeatureTest
is marked as deprecated and a copy is renamed toprovideSpectacularFeatureTesting
(feat(spectacular)!: add requiredroutes
option and optional testing features forprovideSpectacularFeatureTest
#76)withInitialFeatureNavigation
for use withprovideSpectacularFeatureTest
andprovideSpectacularFeatureTesting
(feat(spectacular)!: add requiredroutes
option and optional testing features forprovideSpectacularFeatureTest
#76)SpectacularFeatureTestingModule
is deprecated (feat(spectacular)!: add requiredroutes
option and optional testing features forprovideSpectacularFeatureTest
#76)BREAKING CHANGES
SpectacularAppComponent
is a standalone Angular component. Your tests might need to take this into account depending on your setup. Most tests shouldn't need to change. (feat(spectacular)!: release 15.0.0-alpha.0 #68)routes
option must be passed toprovideSpectacularFeatureTest
. (feat(spectacular)!: add requiredroutes
option and optional testing features forprovideSpectacularFeatureTest
#76)provideSpectacularFeatureTest
returns(EnvironmentProviders | Provider)[]
(feat(spectacular)!: add requiredroutes
option and optional testing features forprovideSpectacularFeatureTest
#76)Migration
Feature test using Angular Testing Library
Before:
After:
DEPRECATIONS
InjectFlags
toSpectacularApplicationHarness#inject
is deprecated in favor of passingInjectOptions
(feat(spectacular)!: release 15.0.0-alpha.0 #68)InjectFlags
toSpectacularFeatureHarness#inject
is deprecated in favor of passingInjectOptions
(feat(spectacular)!: release 15.0.0-alpha.0 #68)InjectFlags
toSpectacularPipeHarnes#inject
is deprecated in favor of passingInjectOptions
(feat(spectacular)!: release 15.0.0-alpha.0 #68)provideSpectacularFeatureTest
is to be removed in Spectacular version 16. Migrate toprovideSpectacularFeatureTesting
. (feat(spectacular)!: add requiredroutes
option and optional testing features forprovideSpectacularFeatureTest
#76)SpectacularFeatureTestingModule
is to be removed in Spectacular version 16. Migrate toprovideSpectacularFeatureTesting
. (feat(spectacular)!: add requiredroutes
option and optional testing features forprovideSpectacularFeatureTest
#76)Migration
InjectFlags to InjectOptions
Before:
After:
This discussion was created from the release Spectacular 15.0.0.
Beta Was this translation helpful? Give feedback.
All reactions