File tree 2 files changed +4
-1
lines changed
configCases/errors/multi-entry-missing-module
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ describe("ConfigTestCases", () => {
45
45
optionsArr . forEach ( ( options , idx ) => {
46
46
if ( ! options . context ) options . context = testDirectory ;
47
47
if ( ! options . mode ) options . mode = "production" ;
48
+ if ( ! options . optimization ) options . optimization = {
49
+ minimize : false
50
+ } ;
48
51
if ( ! options . entry ) options . entry = "./index.js" ;
49
52
if ( ! options . target ) options . target = "async-node" ;
50
53
if ( ! options . output ) options . output = { } ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ it("Should use WebpackMissingModule when module is missing with multiple entry s
2
2
var fs = require ( "fs" ) ;
3
3
var path = require ( "path" ) ;
4
4
var source = fs . readFileSync ( path . join ( __dirname , "b.js" ) , "utf-8" ) ;
5
- source . should . containEql ( "!function(){ var n= new Error(' Cannot find module \"./intentionally-missing-module.js\"');throw n .code=\" MODULE_NOT_FOUND\",n }()} " ) ;
5
+ source . should . containEql ( "!( function webpackMissingModule() { var e = new Error(\" Cannot find module \\\ "./intentionally-missing-module.js\\\"\"); e .code = ' MODULE_NOT_FOUND'; throw e; }()); " ) ;
6
6
7
7
( function ( ) {
8
8
require ( "./intentionally-missing-module" ) ;
You can’t perform that action at this time.
0 commit comments