Skip to content

Commit

Permalink
added better path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
sgorbach0v committed Aug 20, 2024
1 parent f5262b0 commit dead0e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/support/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,11 @@ export const setJestBinaryPath = (newJestBinaryPath: string): void => {
* @param newOutputResultsPath
*/
export const setOutputResultsPath = (newOutputResultsPath: string): void => {
configLogger.info(`Set output results path to "${newOutputResultsPath}"`);
config.outputResultsPath = path.resolve(newOutputResultsPath);
const hostProjectRoot = process.cwd();
const resolvedPath = path.resolve(hostProjectRoot, newOutputResultsPath);

configLogger.info(`Set output results path to "${resolvedPath}"`);
config.outputResultsPath = resolvedPath;
};

/**
Expand Down

0 comments on commit dead0e9

Please sign in to comment.