Commit d0d2a17
committed
feat(@schematics/angular): add Jasmine spy API transformations to jasmine-to-vitest schematic
This commit adds transformers for Jasmine's spying functionality (https://jasmine.github.io/tutorials/spying_on_properties).
Coverage includes:
- spyOn, spyOnProperty, jasmine.createSpy, and jasmine.createSpyObj
- Spy strategies (and.returnValue, and.callFake, etc.) are mapped to Vitest's 'mock*' equivalents.
- Inspection of spy calls (spy.calls.reset, spy.calls.mostRecent).1 parent ad113c7 commit d0d2a17
File tree
3 files changed
+724
-2
lines changed- packages/schematics/angular/refactor/jasmine-vitest
- transformers
3 files changed
+724
-2
lines changedLines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
68 | 79 | | |
69 | 80 | | |
70 | 81 | | |
| |||
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
78 | | - | |
79 | | - | |
| 89 | + | |
80 | 90 | | |
81 | 91 | | |
82 | 92 | | |
| |||
0 commit comments