diff --git a/packages/backend-core/src/environment.ts b/packages/backend-core/src/environment.ts index 87dd2c5e87..4e93e8d9ee 100644 --- a/packages/backend-core/src/environment.ts +++ b/packages/backend-core/src/environment.ts @@ -80,7 +80,7 @@ function getPackageJsonFields(): { } let localVersion: string | undefined - if (isDev()) { + if (isDev() && !isTest()) { try { const lerna = getParentFile("lerna.json") localVersion = lerna.version