()
| 30 | const onCleanupSpy = vi.fn() |
| 31 | const vm = new Vue({ |
| 32 | setup() { |
| 33 | const a = ref(1) |
| 34 | watch( |
| 35 | a, |
| 36 | (n, o, _onCleanup) => { |
| 37 | spy(n, o, _onCleanup) |
| 38 | _onCleanup(onCleanupSpy) |
| 39 | }, |
| 40 | { immediate: true } |
| 41 | ) |
| 42 | return { |
| 43 | a, |
| 44 | } |
| 45 | }, |
| 46 | template: `<div>{{a}}</div>`, |
| 47 | }).$mount() |
| 48 | expect(spy).toBeCalledTimes(1) |
nothing calls this directly
no test coverage detected
searching dependent graphs…