]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: better error message
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 25 Apr 2022 12:39:27 +0000 (14:39 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 25 Apr 2022 12:39:27 +0000 (14:39 +0200)
packages/testing/src/testing.ts

index 4b3d7cc4c363d53c0b1aaf1926d11487cdd46104..1a2a6d64d033ad787006882b914a5eda348c09e3 100644 (file)
@@ -117,7 +117,9 @@ export function createTestingPinia({
     (typeof vi !== 'undefined' && vi.fn)
   /* istanbul ignore if */
   if (!createSpy) {
-    throw new Error('You must configure the `createSpy` option.')
+    throw new Error(
+      '[@pinia/testing]: You must configure the `createSpy` option.'
+    )
   }
 
   // stub actions