Skip to content

Commit ce8c0df

Browse files
committed
Verify that the runtime files are included in entrypoints.json
1 parent 9558c89 commit ce8c0df

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/functional.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,19 @@ describe('Functional tests using webpack', function() {
652652
);
653653
webpackAssert.assertOutputFileDoesNotContain('entrypoints.json', sharedEntryTmpName);
654654

655+
// make sure runtime.js is here
656+
// but the _tmp_shared entry is NOT here
657+
webpackAssert.assertOutputJsonFileMatches('entrypoints.json', {
658+
main: {
659+
js: ['runtime.js', 'shared.js', 'main.js'],
660+
css: ['shared.css']
661+
},
662+
other: {
663+
js: ['runtime.js', 'shared.js', 'other.js'],
664+
css: ['shared.css']
665+
},
666+
});
667+
655668
testSetup.requestTestPage(
656669
path.join(config.getContext(), 'www'),
657670
[

0 commit comments

Comments
 (0)