2021-09-03 13:48:16 +02:00
|
|
|
import path from 'path'
|
|
|
|
|
import postcss from 'postcss'
|
|
|
|
|
import tailwind from '../../src'
|
|
|
|
|
|
|
|
|
|
export function run(input, config, plugin = tailwind) {
|
|
|
|
|
let { currentTestName } = expect.getState()
|
|
|
|
|
|
|
|
|
|
return postcss(plugin(config)).process(input, {
|
|
|
|
|
from: `${path.resolve(__filename)}?test=${currentTestName}`,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-18 12:08:48 +02:00
|
|
|
export let css = String.raw
|
|
|
|
|
export let html = String.raw
|
|
|
|
|
export let javascript = String.raw
|