]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: comment [skip ci]
authorEduardo San Martin Morote <posva13@gmail.com>
Sat, 25 Jan 2025 09:15:35 +0000 (10:15 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Sat, 25 Jan 2025 09:15:35 +0000 (10:15 +0100)
packages/testing/src/testing.ts

index bb8e48b83b503ddcb8951ae347b77e511bc7977d..978cf662718ea44f3ef0462f8130600e2c736509 100644 (file)
@@ -133,6 +133,8 @@ export function createTestingPinia({
     )
   } else if (
     typeof createSpy !== 'function' ||
+    // When users pass vi.fn() instead of vi.fn
+    // https://github.com/vuejs/pinia/issues/2896
     'mockReturnValue' in createSpy
   ) {
     throw new Error(