negated-content.test.js 650 B

12345678910111213141516171819202122232425262728
  1. import * as path from 'path'
  2. import { run, css, defaults } from './util/run'
  3. it('should be possible to use negated content patterns', () => {
  4. let config = {
  5. content: [
  6. path.resolve(__dirname, './negated-content-*.test.html'),
  7. '!' + path.resolve(__dirname, './negated-content-ignore.test.html'),
  8. ],
  9. corePlugins: { preflight: false },
  10. }
  11. let input = css`
  12. @tailwind base;
  13. @tailwind components;
  14. @tailwind utilities;
  15. `
  16. return run(input, config).then((result) => {
  17. expect(result.css).toMatchFormattedCss(css`
  18. ${defaults}
  19. .uppercase {
  20. text-transform: uppercase;
  21. }
  22. `)
  23. })
  24. })