import postcss from 'postcss' import path from 'path' import tailwind from '../../src' function run(input, config = {}) { return postcss(tailwind(config)).process(input, { from: path.resolve(__filename), }) } function css(templates) { return templates.join('') } test('relative purge paths', () => { let config = { content: ['./tests/jit/relative-purge-paths.test.html'], corePlugins: { preflight: false }, theme: {}, plugins: [], } let input = css` @tailwind base; @tailwind components; @tailwind utilities; ` return run(input, config).then((result) => { expect(result.css).toIncludeCss(css` .font-bold { font-weight: 700; } `) }) })