]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
fix(devtools): remove in tests environment
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 25 Apr 2022 13:02:22 +0000 (15:02 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 25 Apr 2022 13:02:22 +0000 (15:02 +0200)
packages/pinia/src/createPinia.ts

index a5970994c874c111e45a9203b30ff9c8de031efc..f105460e504a0949e886e68cb86324666dc6af0a 100644 (file)
@@ -57,7 +57,8 @@ export function createPinia(): Pinia {
 
   // pinia devtools rely on dev only features so they cannot be forced unless
   // the dev build of Vue is used
-  if (__DEV__ && IS_CLIENT) {
+  // We also don't need devtools in test mode
+  if (__DEV__ && IS_CLIENT && !__TEST__) {
     pinia.use(devtoolsPlugin)
   }