@@ -27,6 +27,11 @@ describe('CLI print-config', () => {
2727 const testFileDummySetup = path . join ( testFileDir , 'dummy-setup' ) ;
2828 const configFilePath = ( ext : ( typeof extensions ) [ number ] ) =>
2929 path . join ( process . cwd ( ) , testFileDummySetup , `code-pushup.config.${ ext } ` ) ;
30+ const tsconfigFilePath = path . join (
31+ process . cwd ( ) ,
32+ testFileDummySetup ,
33+ 'tsconfig.base.json' ,
34+ ) ;
3035
3136 beforeAll ( async ( ) => {
3237 await cp ( fixtureDummyDir , testFileDummySetup , { recursive : true } ) ;
@@ -46,7 +51,7 @@ describe('CLI print-config', () => {
4651 'print-config' ,
4752 '--output=config.json' ,
4853 `--config=${ configFilePath ( ext ) } ` ,
49- ' --tsconfig=tsconfig.base.json' ,
54+ ` --tsconfig=${ tsconfigFilePath } ` ,
5055 '--persist.outputDir=output-dir' ,
5156 '--persist.format=md' ,
5257 `--persist.filename=${ ext } -report` ,
@@ -63,7 +68,7 @@ describe('CLI print-config', () => {
6368 expect ( JSON . parse ( output ) ) . toEqual (
6469 expect . objectContaining ( {
6570 config : expect . stringContaining ( `code-pushup.config.${ ext } ` ) ,
66- tsconfig : 'tsconfig.base.json' ,
71+ tsconfig : tsconfigFilePath ,
6772 plugins : [
6873 expect . objectContaining ( {
6974 slug : 'dummy-plugin' ,
0 commit comments