]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
fix(testing): typo when detecting jest existence (#811)
authorBodo Graumann <mail@bodograumann.de>
Fri, 19 Nov 2021 09:27:35 +0000 (10:27 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Nov 2021 09:27:35 +0000 (10:27 +0100)
packages/testing/src/testing.ts

index 8bd35fe143778805ec740ba40ba76ba7d2cac91b..201414a52ea4bfd57987e67df58f9a7761a8ca0a 100644 (file)
@@ -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.')