Skip to content

Commit d29b0b8

Browse files
committed
chore: better error message
1 parent 2e4f6ca commit d29b0b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/testing/src/testing.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export function createTestingPinia({
117117
(typeof vi !== 'undefined' && vi.fn)
118118
/* istanbul ignore if */
119119
if (!createSpy) {
120-
throw new Error('You must configure the `createSpy` option.')
120+
throw new Error(
121+
'[@pinia/testing]: You must configure the `createSpy` option.'
122+
)
121123
}
122124

123125
// stub actions

0 commit comments

Comments
 (0)