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] 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:^",