From 62eaa4c310f2b66ebf1c6f19ceccfc6b1d041006 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 24 Oct 2024 20:02:23 +0200 Subject: [PATCH] cli: trim workspace dir from Jest transform hash input Signed-off-by: Patrik Oldsberg --- packages/cli/config/jest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/config/jest.js b/packages/cli/config/jest.js index b6d945c119..c51b3040b1 100644 --- a/packages/cli/config/jest.js +++ b/packages/cli/config/jest.js @@ -264,7 +264,7 @@ async function getProjectConfig(targetPath, extraConfig, extraOptions) { .createHash('sha256') .update(version) .update(Buffer.alloc(1)) - .update(JSON.stringify(config.transform)) + .update(JSON.stringify(config.transform).replaceAll(paths.targetRoot, '')) .digest('hex'); config.id = `backstage_cli_${configHash}`; }