File tree 2 files changed +6
-2
lines changed
test/configCases/errors/multi-entry-missing-module
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
it ( "Should use WebpackMissingModule when module is missing with multiple entry setup" , function ( ) {
2
2
var fs = require ( "fs" ) ;
3
- var source = fs . readFileSync ( "test/js/config/errors/multi-entry-missing-module/b.js" , "utf-8" ) ;
3
+ var path = require ( "path" ) ;
4
+ var source = fs . readFileSync ( path . join ( __dirname , "b.js" ) , "utf-8" ) ;
4
5
source . should . containEql ( "!function(){var n=new Error('Cannot find module \"./intentionally-missing-module.js\"');throw n.code=\"MODULE_NOT_FOUND\",n}()}" ) ;
5
6
6
7
( function ( ) {
Original file line number Diff line number Diff line change @@ -9,5 +9,8 @@ module.exports = {
9
9
} ,
10
10
plugins : [
11
11
new IgnorePlugin ( new RegExp ( / i n t e n t i o n a l l y - m i s s i n g - m o d u l e / ) )
12
- ]
12
+ ] ,
13
+ node : {
14
+ __dirname : false
15
+ }
13
16
} ;
You can’t perform that action at this time.
0 commit comments