cli: only configure jest result processor if success cache is used
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user