import fs from 'fs' import path from 'path' import { crosscheck, run, html, css } from './util/run' crosscheck(({ stable, oxide }) => { it('raw content', () => { let config = { content: [ { raw: html`
`, }, ], corePlugins: { preflight: false }, } let input = css` @tailwind components; @tailwind utilities; ` return run(input, config).then((result) => { stable .expect(result.css) .toMatchFormattedCss( fs.readFileSync(path.resolve(__dirname, './raw-content.test.css'), 'utf8') ) oxide .expect(result.css) .toMatchFormattedCss( fs.readFileSync(path.resolve(__dirname, './raw-content.oxide.test.css'), 'utf8') ) }) }) })