File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,9 @@ export default (options?: MockOptions): Plugin => {
66
66
options . mockRootDir = options . mockRootDir || './mock'
67
67
options . mockJsSuffix = options . mockJsSuffix || '.mock.js'
68
68
options . mockTsSuffix = options . mockTsSuffix || '.mock.ts'
69
- options . noHandlerResponse404 = options . noHandlerResponse404 || true
70
- options . printStartupLog = options . printStartupLog || true
69
+ console . log ( typeof options . printStartupLog )
70
+ options . noHandlerResponse404 = ( typeof options . noHandlerResponse404 !== 'boolean' ) ? true : options . noHandlerResponse404
71
+ options . printStartupLog = ( typeof options . printStartupLog !== 'boolean' ) ? true : options . printStartupLog
71
72
if ( options . mockModules && options . mockModules . length > 0 ) {
72
73
console . warn ( '[' + PLUGIN_NAME + '] mock modules will be set automatically, and the configuration will be ignored' , options . mockModules )
73
74
}
You can’t perform that action at this time.
0 commit comments