webpack/test/configCases/plugins/source-map-dev-tool-plugin-.../index.js

7 lines
304 B
JavaScript
Raw Normal View History

it("should have [file] replaced with chunk filename in append", function() {
2023-05-24 13:44:06 +08:00
const fs = require("fs"),
path = require("path");
2023-05-24 13:44:06 +08:00
const source = fs.readFileSync(path.join(__dirname, "some-test.js"), "utf-8");
expect(source).toMatch("//# sourceMappingURL=http://localhost:50505/some-test.js.map");
});