Commit 8289333
committed
fix(@schematics/angular): improve comment preservation in jasmine-to-vitest
This commit improves the preservation of comments during the `jasmine-to-vitest` transformation.
Specifically, it fixes an issue where multi-line comments between chained spy calls were being discarded. The transformer has been updated to use a less destructive AST modification pattern, which successfully preserves this trivia.
Additionally, a previously failing test case for this scenario has been re-enabled and is now passing.1 parent f93a8e8 commit 8289333
File tree
2 files changed
+7
-2
lines changed- packages/schematics/angular/refactor/jasmine-vitest
- transformers
2 files changed
+7
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
| |||
0 commit comments