UNPKG

postcss-purgecss-laravel

Version:

postcss-purgecss wrapper with sensible defaults for Laravel apps

35 lines (27 loc) 820 B
const createConfig = require("../src/createConfig"); test("it can pass through the default config", () => { expect(createConfig({})).toMatchSnapshot(); }); test("it can override the default config", () => { const config = { content: ["resource/js/**/*.js"], }; expect(createConfig(config)).toMatchSnapshot(); }); test("it can extend the default config", () => { const config = { extend: { content: ["vendor/spatie/menu/**/*.php"], }, }; expect(createConfig(config)).toMatchSnapshot(); }); test("it can extend and override the default config", () => { const config = { whitelistPatterns: [], extend: { content: ["vendor/spatie/menu/**/*.php"], }, }; expect(createConfig(config)).toMatchSnapshot(); });