From d29b0b81b2206cf62661ed60a4cf72d91f644bef Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 25 Apr 2022 14:39:27 +0200 Subject: [PATCH] chore: better error message --- packages/testing/src/testing.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.3