Skip to content

Commit 97fdd13

Browse files
committed
tests - fix helper to get the output path when outputdir is set
1 parent 2dfcfd1 commit 97fdd13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,13 @@ export function outputForInput(
146146

147147
const outputPath: string = projectRoot && projectOutDir !== undefined
148148
? join(projectRoot, projectOutDir, dir, `${stem}.${outputExt}`)
149+
: projectOutDir !== undefined
150+
? join(projectOutDir, dir, `${stem}.${outputExt}`)
149151
: join(dir, `${stem}.${outputExt}`);
150152
const supportPath: string = projectRoot && projectOutDir !== undefined
151153
? join(projectRoot, projectOutDir, dir, `${stem}_files`)
154+
: projectOutDir !== undefined
155+
? join(projectOutDir, dir, `${stem}_files`)
152156
: join(dir, `${stem}_files`);
153157

154158
return {

0 commit comments

Comments
 (0)