Skip to content

Commit f94afeb

Browse files
author
hirsch88
committed
Add test path for make commands
1 parent 5acb9c7 commit f94afeb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/console/lib/AbstractMakeCommand.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ export class AbstractMakeCommand {
6565
}
6666

6767
public buildFilePath = (targetPath: string, fileName: string, isTest = false, extension = '.ts') => {
68-
return path.join(__dirname, `/../../${targetPath}`, `${fileName}${extension}`);
68+
if (isTest) {
69+
return path.join(__dirname, `/../../../test${targetPath}`, `${fileName}${extension}`);
70+
} else {
71+
return path.join(__dirname, `/../../${targetPath}`, `${fileName}${extension}`);
72+
}
6973
}
7074

7175
public parseName(suffix: string = '', prefix: string = ''): (name: string) => string {

0 commit comments

Comments
 (0)