diff --git a/test/integration/production/test/index.test.js b/test/integration/production/test/index.test.js index 1b78a0d0..b16b2df8 100644 --- a/test/integration/production/test/index.test.js +++ b/test/integration/production/test/index.test.js @@ -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['/']) {