From 9753347f8a4cf4cf2fad8fc3538124cbc3ac3fe8 Mon Sep 17 00:00:00 2001 From: Dylan Hunn Date: Mon, 21 Aug 2023 14:12:18 -0700 Subject: [PATCH] docs: Add standalone edits to "Testing Components" (#51451) Minimal updates to the "Testing Components" guide for standalone-by-default aio. PR Close #51451 --- aio/content/guide/testing-components-basics.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aio/content/guide/testing-components-basics.md b/aio/content/guide/testing-components-basics.md index afc08ad8a63..28d2cb2d975 100644 --- a/aio/content/guide/testing-components-basics.md +++ b/aio/content/guide/testing-components-basics.md @@ -54,6 +54,12 @@ When a component has dependencies, you might want to use the `TestBed` to both c The following `WelcomeComponent` depends on the `UserService` to know the name of the user to greet. +
+ +Remember to either *import* or *provide* each standalone component you want to test. + +
+ You might start by creating a mock of the `UserService` that meets the minimum needs of this component.