Skip to content

Commit 7279955

Browse files
committed
chore: comment [skip ci]
1 parent 394f655 commit 7279955

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/testing/src/testing.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ export function createTestingPinia({
133133
)
134134
} else if (
135135
typeof createSpy !== 'function' ||
136+
// When users pass vi.fn() instead of vi.fn
137+
// https://github.com/vuejs/pinia/issues/2896
136138
'mockReturnValue' in createSpy
137139
) {
138140
throw new Error(

0 commit comments

Comments
 (0)