Skip to content

Commit d8822e3

Browse files
committed
feat: better no spy message
1 parent 4dd34fc commit d8822e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/autoSpy.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ export function createSpy<Fn extends (...args: any[]) => any>(
3232
console.error(
3333
`Couldn't detect a global spy (tried jest and sinon). Make sure to provide a "spy.create" option when creating the router mock.`
3434
)
35-
throw new Error('No Spy Available')
35+
throw new Error(
36+
'No Spy Available. See https://github.com/posva/vue-router-mock#testing-libraries'
37+
)
3638
}
3739

3840
/**

0 commit comments

Comments
 (0)