diff --git a/test/configCases/records/stable-sort/test.js b/test/configCases/records/stable-sort/test.js index 9e426ed34ad..9a7c63ce254 100644 --- a/test/configCases/records/stable-sort/test.js +++ b/test/configCases/records/stable-sort/test.js @@ -10,5 +10,5 @@ it("sorts the usedIds array to prevent churn", function() { var fs = require("fs"); var path = require("path"); var records = JSON.parse(fs.readFileSync(path.join(__dirname, "records.json"), "utf-8")); - expect(records.chunks.usedIds).toEqual([0, "main", "split"]); + expect(records.chunks.usedIds).toEqual([0, 1, 2]); }); diff --git a/test/configCases/records/stable-sort/webpack.config.js b/test/configCases/records/stable-sort/webpack.config.js index 2a39b41e118..56c58a64209 100644 --- a/test/configCases/records/stable-sort/webpack.config.js +++ b/test/configCases/records/stable-sort/webpack.config.js @@ -7,6 +7,9 @@ module.exports = { __dirname, "../../../js/config/records/stable-sort/records.json" ), + optimization: { + namedChunks: false + }, target: "node", node: { __dirname: false