cli: only configure jest result processor if success cache is used

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-10-07 18:55:26 +02:00
parent b3b4825162
commit 86d6c1d2bf
+3 -1
View File
@@ -339,7 +339,9 @@ async function getRootConfig() {
return {
rootDir: paths.targetRoot,
projects: configs,
testResultsProcessor: require.resolve('./jestCacheResultProcessor.cjs'),
testResultsProcessor: cache
? require.resolve('./jestCacheResultProcessor.cjs')
: undefined,
...globalRootConfig,
};
}