mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fix test intermittently failing
This commit is contained in:
parent
249d4be6d6
commit
3dae7cf9a6
|
@ -73,7 +73,8 @@ describe('Production Usage', () => {
|
|||
resources.push(`${url}static/${buildId}/pages/index.js`)
|
||||
|
||||
// test dynamic chunk
|
||||
resources.push(url + reactLoadableManifest['../../components/hello1'][0].publicPath)
|
||||
const file = Object.keys(reactLoadableManifest).find((i) => i.indexOf('components/hello1') !== -1)
|
||||
resources.push(url + reactLoadableManifest[file][0].publicPath)
|
||||
|
||||
// test main.js runtime etc
|
||||
for (const item of buildManifest.pages['/']) {
|
||||
|
|
Loading…
Reference in a new issue