From 64b7132d40efbf4c0324045f2b6be4619d9ead6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Tue, 17 Mar 2026 15:37:24 +0100 Subject: [PATCH 1/2] fix(cli): exclude __fixtures__ from coverage in cli-module-build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the transform tests were moved from @backstage/cli to @backstage/cli-module-build, the coveragePathIgnorePatterns config was not carried over. This caused test failures in CI when running with --coverage, as Jest tried to instrument the fixture files containing fake node_modules packages. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Fredrik Adelöw --- packages/cli-module-build/package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/cli-module-build/package.json b/packages/cli-module-build/package.json index d13fa4bac0..9b32eca0fe 100644 --- a/packages/cli-module-build/package.json +++ b/packages/cli-module-build/package.json @@ -34,6 +34,11 @@ "postpack": "backstage-cli package postpack", "test": "backstage-cli package test" }, + "jest": { + "coveragePathIgnorePatterns": [ + "/__fixtures__/" + ] + }, "dependencies": { "@backstage/cli-common": "workspace:^", "@backstage/cli-node": "workspace:^", From 85346e51b252846d2af373d09b3237bc7bc7dd85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Tue, 17 Mar 2026 15:40:41 +0100 Subject: [PATCH 2/2] chore(cli): remove unused coveragePathIgnorePatterns from @backstage/cli MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The __fixtures__ directory that required this exclusion was moved to @backstage/cli-module-build. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Fredrik Adelöw --- packages/cli/package.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 4ba287a9ef..d34a1860ca 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -41,11 +41,6 @@ "ext": "ts", "watch": "./src" }, - "jest": { - "coveragePathIgnorePatterns": [ - "/__fixtures__/" - ] - }, "dependencies": { "@backstage/cli-common": "workspace:^", "@backstage/cli-defaults": "workspace:^",