From: Bodo Graumann Date: Fri, 19 Nov 2021 09:27:35 +0000 (+0100) Subject: fix(testing): typo when detecting jest existence (#811) X-Git-Tag: @pinia/testing@0.0.6~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1fd01350b12b09ce49f923ebc9fee992c2408fd;p=thirdparty%2Fvuejs%2Fpinia.git fix(testing): typo when detecting jest existence (#811) --- diff --git a/packages/testing/src/testing.ts b/packages/testing/src/testing.ts index 8bd35fe1..201414a5 100644 --- a/packages/testing/src/testing.ts +++ b/packages/testing/src/testing.ts @@ -70,7 +70,7 @@ export function createTestingPinia({ plugins.forEach((plugin) => pinia.use(plugin)) - const createSpy = _createSpy || (typeof jest !== undefined && jest.fn) + const createSpy = _createSpy || (typeof jest !== 'undefined' && jest.fn) /* istanbul ignore if */ if (!createSpy) { throw new Error('You must configure the `createSpy` option.')