File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ module.exports = {
4545
4646 process . env . SLS_DEBUG && this . serverless . cli . log ( `Webpack watch invoke: HASH NEW=${ stats . hash } CUR=${ lastHash } ` ) ;
4747
48- // If the file hash did not change there were no effective code changes detected (comment only changed do not change the compile hash!)
48+ // If the file hash did not change there were no effective code changes detected
49+ // (comment changes do not change the compile hash and do not account for a rebuild!)
4950 // See here: https://webpack.js.org/api/node/#watching (note below watching)
5051 if ( stats && stats . hash === lastHash ) {
5152 if ( firstRun ) {
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ describe('wpwatch', function() {
160160 return expect ( wpwatch ( ) ) . to . be . fulfilled
161161 . then ( ( ) => BbPromise . delay ( 3000 ) )
162162 . then ( ( ) => BbPromise . join (
163- expect ( spawnStub ) . to . have . been . calledOnce ,
163+ expect ( spawnStub ) . to . not . have . been . called ,
164164 expect ( webpackMock . compilerMock . watch ) . to . have . been . calledOnce ,
165165 expect ( watchCallbackSpy ) . to . have . been . calledTwice
166166 ) ) ;
You can’t perform that action at this time.
0 commit comments