Commit 52e1f18
fix: remove vi.mock() from admin-messages test for Angular 21.2 compatibility
Angular 21.2 introduced a vitest-mock-patch plugin that blocks vi.mock()
in Angular tests. Replace module-level mock with provideRouter([]) to
support the real MessagesTable child component.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6594d0e commit 52e1f18
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
| |||
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
35 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
0 commit comments