Skip to content

Commit 4aeb0a5

Browse files
committed
fix(devtools): remove in tests environment
1 parent d29b0b8 commit 4aeb0a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/pinia/src/createPinia.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ export function createPinia(): Pinia {
5757

5858
// pinia devtools rely on dev only features so they cannot be forced unless
5959
// the dev build of Vue is used
60-
if (__DEV__ && IS_CLIENT) {
60+
// We also don't need devtools in test mode
61+
if (__DEV__ && IS_CLIENT && !__TEST__) {
6162
pinia.use(devtoolsPlugin)
6263
}
6364

0 commit comments

Comments
 (0)