You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/angular-testing-library/examples.mdx
+67-6
Original file line number
Diff line number
Diff line change
@@ -56,16 +56,77 @@ describe('Counter', () => {
56
56
})
57
57
```
58
58
59
+
## With Standalone Components
60
+
61
+
Angular Testing Library can also test your standalone components.
62
+
In fact, it even becomes easier because you don't have to set up the whole Angular TestBed.
63
+
This was previously only [possible when you used Single Component Angular Modules (SCAMs)](https://timdeschryver.dev/blog/single-component-angular-modules-and-component-tests-go-hand-in-hand).
64
+
65
+
Let's migrate the counter component to a standalone component, and let's take a look at how this affects the test.
To override the an import of a standalone component for your component test, you can use the [`ɵcomponentImports` property](api.mdx#ɵcomponentImports]).
0 commit comments