Skip to content

Commit c1fd013

Browse files
authored
fix(testing): typo when detecting jest existence (#811)
1 parent ce2c850 commit c1fd013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/testing/src/testing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function createTestingPinia({
7070

7171
plugins.forEach((plugin) => pinia.use(plugin))
7272

73-
const createSpy = _createSpy || (typeof jest !== undefined && jest.fn)
73+
const createSpy = _createSpy || (typeof jest !== 'undefined' && jest.fn)
7474
/* istanbul ignore if */
7575
if (!createSpy) {
7676
throw new Error('You must configure the `createSpy` option.')

0 commit comments

Comments
 (0)