mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
20 lines
555 B
JavaScript
20 lines
555 B
JavaScript
import path from 'path'
|
|
|
|
import autoprefixer from 'autoprefixer'
|
|
|
|
import tailwind from '../src'
|
|
import compile from '../src/cli/compile'
|
|
|
|
describe('cli compile', () => {
|
|
const inputFile = path.resolve(__dirname, 'fixtures/tailwind-input.css')
|
|
const outputFile = 'output.css'
|
|
const plugins = [tailwind(), autoprefixer]
|
|
|
|
it('compiles CSS file', () => {
|
|
return compile({ inputFile, outputFile, plugins }).then((result) => {
|
|
expect(result.css).toContain('.example')
|
|
expect(result.css).toContain('-ms-input-placeholder')
|
|
})
|
|
})
|
|
})
|