From: Eduardo San Martin Morote Date: Mon, 25 Apr 2022 12:39:27 +0000 (+0200) Subject: chore: better error message X-Git-Tag: @pinia/nuxt@0.1.9~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d29b0b81b2206cf62661ed60a4cf72d91f644bef;p=thirdparty%2Fvuejs%2Fpinia.git chore: better error message --- diff --git a/packages/testing/src/testing.ts b/packages/testing/src/testing.ts index 4b3d7cc4..1a2a6d64 100644 --- a/packages/testing/src/testing.ts +++ b/packages/testing/src/testing.ts @@ -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