Commit d5fd734
feat(core): introduce TestBed.tick() (#60993)
This commit introduces the `TestBed.tick()` method that,
similarly to the `ApplicationRef.tick()`, synchronizes state
with the DOM. It can be used in unit tests to mimic framework's
logic executed in production applications. The `TestBed.tick()`
should be used instead of the removed `TestBed.flushEffects()`.
BREAKING CHANGE: the `TestBed.flushEffects()` was removed - use
the `TestBed.tick()` instead.
PR Close #609931 parent ccc5cc0 commit d5fd734
File tree
2 files changed
+0
-22
lines changed- goldens/public-api/core/testing
- packages/core/testing/src
2 files changed
+0
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | 121 | | |
124 | 122 | | |
125 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 155 | | |
163 | 156 | | |
164 | 157 | | |
| |||
398 | 391 | | |
399 | 392 | | |
400 | 393 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | 394 | | |
406 | 395 | | |
407 | 396 | | |
| |||
812 | 801 | | |
813 | 802 | | |
814 | 803 | | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | 804 | | |
825 | 805 | | |
826 | 806 | | |
| |||
0 commit comments