@@ -15,10 +15,10 @@ const separateBundlePath = path.join(fixtureDir, "separate-directory/bundles/ind
1515const separateSourceMapPath = path . join ( fixtureDir , "separate-directory/sourcemaps/index.js.map" ) ;
1616const separateBundleContent = fs . readFileSync ( separateBundlePath , "utf-8" ) ;
1717
18- const sourceMapUrl = "https://sourcemaps.example.com/foo/index.js.map"
18+ const sourceMapUrl = "https://sourcemaps.example.com/foo/index.js.map" ;
1919
2020function srcMappingUrl ( url : string ) : string {
21- return `\n//# sourceMappingURL=${ url } `
21+ return `\n//# sourceMappingURL=${ url } ` ;
2222}
2323
2424describe ( "Resolve source maps" , ( ) => {
@@ -82,7 +82,8 @@ describe("Resolve source maps", () => {
8282 expect (
8383 await determineSourceMapPathFromBundle (
8484 separateBundlePath ,
85- separateBundleContent + srcMappingUrl ( path . relative ( path . dirname ( separateBundlePath ) , separateSourceMapPath ) ) ,
85+ separateBundleContent +
86+ srcMappingUrl ( path . relative ( path . dirname ( separateBundlePath ) , separateSourceMapPath ) ) ,
8687 logger ,
8788 undefined
8889 )
@@ -103,7 +104,7 @@ describe("Resolve source maps", () => {
103104 } ) ;
104105
105106 it ( "should pass the correct values to the resolveSourceMap hook" , async ( ) => {
106- const hook = jest . fn ( ( ) => separateSourceMapPath )
107+ const hook = jest . fn ( ( ) => separateSourceMapPath ) ;
107108 expect (
108109 await determineSourceMapPathFromBundle (
109110 separateBundlePath ,
@@ -112,11 +113,11 @@ describe("Resolve source maps", () => {
112113 hook
113114 )
114115 ) . toEqual ( separateSourceMapPath ) ;
115- expect ( hook . mock . calls [ 0 ] ) . toEqual ( [ separateBundlePath , sourceMapUrl ] )
116+ expect ( hook . mock . calls [ 0 ] ) . toEqual ( [ separateBundlePath , sourceMapUrl ] ) ;
116117 } ) ;
117118
118119 it ( "should pass the correct values to the resolveSourceMap hook when no sourceMappingURL is present" , async ( ) => {
119- const hook = jest . fn ( ( ) => separateSourceMapPath )
120+ const hook = jest . fn ( ( ) => separateSourceMapPath ) ;
120121 expect (
121122 await determineSourceMapPathFromBundle (
122123 separateBundlePath ,
@@ -125,7 +126,7 @@ describe("Resolve source maps", () => {
125126 hook
126127 )
127128 ) . toEqual ( separateSourceMapPath ) ;
128- expect ( hook . mock . calls [ 0 ] ) . toEqual ( [ separateBundlePath , undefined ] )
129+ expect ( hook . mock . calls [ 0 ] ) . toEqual ( [ separateBundlePath , undefined ] ) ;
129130 } ) ;
130131
131132 it ( "should prefer resolveSourceMap result over heuristic results" , async ( ) => {
@@ -161,4 +162,4 @@ describe("Resolve source maps", () => {
161162 ) . toEqual ( adjacentSourceMapPath ) ;
162163 } ) ;
163164 } ) ;
164- } ) ;
165+ } ) ;
0 commit comments