Skip to content

Commit

Permalink
Merge pull request #41 from slackhq/sg-add-better-path-resolution
Browse files Browse the repository at this point in the history
added better path resolution
  • Loading branch information
sgorbach0v authored Aug 20, 2024
2 parents f5262b0 + dead0e9 commit e26df60
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 e26df60

Please sign in to comment.