@@ -50,8 +50,8 @@ function execLoader(filename, callback) {
50
50
}
51
51
52
52
describe ( 'source-map-loader' , ( ) => {
53
- const fixturesPath = path . join ( __dirname , 'fixtures' ) ;
54
- const dataPath = path . join ( fixturesPath , 'data' ) ;
53
+ const fixturesPath = path . resolve ( __dirname , 'fixtures' ) ;
54
+ const dataPath = path . resolve ( fixturesPath , 'data' ) ;
55
55
56
56
it ( 'should leave normal files untouched' , ( done ) => {
57
57
execLoader (
@@ -271,7 +271,7 @@ describe('source-map-loader', () => {
271
271
} ) ;
272
272
273
273
it ( 'should support absolute sourceRoot paths in sourcemaps' , ( done ) => {
274
- const sourceRoot = path . join ( fixturesPath ) ;
274
+ const sourceRoot = fixturesPath ;
275
275
const javaScriptFilename = 'absolute-sourceRoot-source-map.js' ;
276
276
const sourceFilename = 'absolute-sourceRoot-source-map.txt' ;
277
277
const rootRelativeSourcePath = path . join ( sourceRoot , sourceFilename ) ;
@@ -288,6 +288,8 @@ describe('source-map-loader', () => {
288
288
sources : [ sourceFilename ] ,
289
289
mappings : 'AAAA' ,
290
290
} ;
291
+ console . log ( rawSourceMap ) ;
292
+ console . log ( rootRelativeSourcePath ) ;
291
293
fs . writeFileSync ( sourceMapPath , JSON . stringify ( rawSourceMap ) ) ;
292
294
293
295
execLoader (
0 commit comments