Commit 38b0b3d
authored
test(v2/runtime): fix vitest mock API usage in events tests (#5579)
* test(v2/runtime): fix vitest mock API usage in events tests
Three tests in desktop/events.test.js read mock invocations via
window.WailsInvoke.calls, which is the pre-1.0 vitest/jest spy shape;
modern vitest exposes them at .mock.calls, so the property was
undefined and the tests failed on every run ('should emit an event'
and both EventsOff/EventsOffAll cases). The suite has been red on
master independent of any product change.
Use .mock.calls. All 11 tests now pass; no product code touched.
* chore: remove UNRELEASED_CHANGELOG.md to avoid merge conflicts1 parent 99f9b5f commit 38b0b3d
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
0 commit comments