webpack/test/configCases/source-map/extract-source-map/extract2.js

13 lines
316 B
JavaScript
Raw Normal View History

"use strict";
const fs = require("fs");
const path = require("path");
require("./test2");
it("should extract source map - 2", () => {
const fileData = fs.readFileSync(path.resolve(__dirname, "bundle2.js.map")).toString("utf-8");
const { sources } = JSON.parse(fileData);
expect(sources).toMatchSnapshot();
});