webpack/test/configCases/source-map/devtool-namespace-with-sour.../src/entry-b.js

7 lines
295 B
JavaScript
Raw Normal View History

2024-06-09 11:16:17 +08:00
it("should include webpack://library-entry-b/./src/entry-b.js in SourceMap", function() {
const fs = require("fs");
const source = fs.readFileSync(__filename + ".map", "utf-8");
const map = JSON.parse(source);
expect(map.sources).toContain("webpack://library-entry-b/./src/entry-b.js");
});