Skip to content

Commit 5bf6d21

Browse files
committed
WIP - fixing tests by allowing dynamic filename asserts
1 parent 8c2752a commit 5bf6d21

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/functional.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ module.exports = {
26512651
});
26522652
});
26532653

2654-
it('Use splitChunks in production mode', (done) => {
2654+
it.only('Use splitChunks in production mode', (done) => {
26552655
const config = createWebpackConfig('web/build', 'production');
26562656
config.addEntry('main', ['./css/roboto_font.css', './js/no_require', 'vue']);
26572657
config.addEntry('other', ['./css/roboto_font.css', 'vue']);
@@ -2666,18 +2666,18 @@ module.exports = {
26662666
webpackAssert.assertOutputJsonFileMatches('entrypoints.json', {
26672667
entrypoints: {
26682668
main: {
2669-
js: ['/build/runtime.js', '/build/961.js', '/build/38.js', '/build/main.js'],
2670-
css: ['/build/38.css']
2669+
js: ['/build/runtime.js', '/build/[id].js', '/build/[id].js', '/build/main.js'],
2670+
css: ['/build/[id].css']
26712671
},
26722672
other: {
2673-
js: ['/build/runtime.js', '/build/961.js', '/build/38.js', '/build/other.js'],
2674-
css: ['/build/38.css']
2673+
js: ['/build/runtime.js', '/build/[id].js', '/build/[id].js', '/build/other.js'],
2674+
css: ['/build/[id].css']
26752675
}
26762676
}
26772677
});
26782678

26792679
// make split chunks are correct in manifest
2680-
webpackAssert.assertManifestKeyExists('build/961.js');
2680+
webpackAssert.assertManifestPath('build/[id].js', '/build/[id].[hash:8].js');
26812681

26822682
done();
26832683
});

0 commit comments

Comments
 (0)