Skip to content

Commit

Permalink
fix(cli-utils): Reports - generate relative path with outDir
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Jan 24, 2024
1 parent 8b22b89 commit 42deefd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli-utils/src/baseline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const getBaselineRelativePath = (
filepath = '',
): string => {
const absoluteFilepath = getBaselinePath(outputPath, outputDir, filepath);
return path.relative(path.join(outputPath, outputDir), absoluteFilepath);
return path.relative(outputPath, absoluteFilepath);
};

export async function readBaseline(baselineFilepath: string): Promise<object> {
Expand Down

0 comments on commit 42deefd

Please sign in to comment.