mirror of https://github.com/webpack/webpack.git
13 lines
316 B
JavaScript
13 lines
316 B
JavaScript
|
"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();
|
||
|
});
|