@@ -26,6 +26,7 @@ const makeRelative = (tsInstance: typeof TS, fileName: string, p: string, rootDi
26
26
27
27
const getExpected = ( tsInstance : typeof TS , fileName : string , original : string , rootDir : string ) : string =>
28
28
original
29
+ . replace ( / ' / g, '"' )
29
30
. replace ( / " @ ( .* ) " / g, ( _ , p ) => makeRelative ( tsInstance , fileName , p , rootDir ) )
30
31
. replace ( / " # u t i l s \/ ( .* ) " / g, ( _ , p ) =>
31
32
makeRelative ( tsInstance , fileName , path . join ( p === 'hello' ? 'secondary' : 'utils' , p ) , rootDir )
@@ -77,7 +78,9 @@ describe(`[Project: 'general'] - General Tests`, () => {
77
78
let transformed : EmittedFiles [ string ] ;
78
79
79
80
beforeAll ( ( ) => {
80
- transformed = transformedFiles [ file ] ;
81
+ transformed = transformedFiles [ file ]
82
+ transformed . js = transformed . js . replace ( / ' / g, '"' ) ;
83
+ transformed . dts = transformed . dts ?. replace ( / ' / g, '"' ) ;
81
84
expected = {
82
85
js : getExpected ( ts , file , originalFiles [ file ] . js , projectRoot ) ,
83
86
...( ! skipDts && { dts : getExpected ( ts , file , originalFiles [ file ] . dts ! , projectRoot ) } ) ,
0 commit comments