webpack/test/configCases/source-map/namespace-source-path-no-tr.../index.js

9 lines
314 B
JavaScript
Raw Normal View History

2020-11-07 22:33:24 +08:00
it("should include webpack://mynamespace/./[id].js in SourceMap", function () {
var fs = require("fs");
var source = fs.readFileSync(__filename + ".map", "utf-8");
var map = JSON.parse(source);
expect(map.sources).toContain("webpack://mynamespace/./[id].js");
});
if (Math.random() < 0) require("./[id].js");