File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import { type ChildProcess , fork } from 'node:child_process' ;
2- import { dirname , extname , join , relative } from 'node:path' ;
2+ import { dirname , extname , join } from 'node:path' ;
33import { fileURLToPath } from 'node:url' ;
44import { type RsbuildConfig , type RsbuildPlugin , logger } from '@rsbuild/core' ;
55import color from 'picocolors' ;
Original file line number Diff line number Diff line change @@ -611,13 +611,16 @@ describe('use with other features', async () => {
611611describe ( 'check tsconfig.json field' , async ( ) => {
612612 test ( 'check whether declarationDir is resolved outside from project root' , async ( ) => {
613613 const fixturePath = join ( __dirname , 'check' , 'outside-root' ) ;
614+ console . log ( normalize ( join ( __dirname , 'check/tsconfig/dist' ) ) ) ;
614615 const { logs, restore } = proxyConsole ( ) ;
615616 const { files } = await buildAndGetResults ( {
616617 fixturePath,
617618 type : 'dts' ,
618619 } ) ;
619620 const logStrings = logs . map ( ( log ) => stripAnsi ( log ) ) ;
620621
622+ restore ( ) ;
623+ console . log ( 'logStrings: ' , logStrings ) ;
621624 expect ( files . esm ) . toMatchInlineSnapshot ( 'undefined' ) ;
622625 expect (
623626 logStrings . some ( ( log ) =>
@@ -626,7 +629,5 @@ describe('check tsconfig.json field', async () => {
626629 ) ,
627630 ) ,
628631 ) . toEqual ( true ) ;
629-
630- restore ( ) ;
631632 } ) ;
632633} ) ;
You can’t perform that action at this time.
0 commit comments