Skip to content

Commit

Permalink
when browser bundle change, actually ssr change also
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Feb 8, 2021
1 parent 5a44054 commit da20685
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integration-tests/artifacts/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,9 @@ describe(`Fourth run (gatsby-browser change - cache get invalidated)`, () => {
})
})

// Fourth run - we change gatsby-browser, so only browser bundle should change
assertWebpackBundleChanges({ browser: true, ssr: false, runNumber })
// Fourth run - we change gatsby-browser, so browser bundle change,
// but ssr bundle also change because chunk-map file is changed due to browser bundle change
assertWebpackBundleChanges({ browser: true, ssr: true, runNumber })
})

describe(`Fifth run (ssr-only change - only ssr compilation hash changes)`, () => {
Expand Down

0 comments on commit da20685

Please sign in to comment.