grunt-webpack
Version:
Use webpack with grunt.
20 lines (15 loc) • 506 B
JavaScript
import WebpackOptionHelper from "../WebpackOptionHelper";
describe("WebpackOptionHelper", () => {
test("watch options is part of webpack options", () => {
const options = {
watch: true,
watchOptions: { aggregateTimeout: 300, poll: 1000 },
};
const helper = new WebpackOptionHelper();
helper.getOptions = () => options;
const result = helper.getWebpackOptions();
expect(result).toEqual({
watchOptions: { aggregateTimeout: 300, poll: 1000 },
});
});
});