Skip to content

Commit

Permalink
fix(devtools): remove in tests environment
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Apr 25, 2022
1 parent d29b0b8 commit 4aeb0a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/pinia/src/createPinia.ts
Expand Up @@ -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)
}

Expand Down

0 comments on commit 4aeb0a5

Please sign in to comment.