(classes: string)
| 3 | import config from '../tailwind.config'; |
| 4 | |
| 5 | const build = async (classes: string): Promise<string> => { |
| 6 | const result = await postcss([ |
| 7 | tailwindcss({ ...config, content: [{ raw: `<div class="${classes}">` }] }), |
| 8 | ]).process('@tailwind utilities;', { from: undefined }); |
| 9 | |
| 10 | return result.css; |
| 11 | }; |
| 12 | |
| 13 | describe('hover variant', () => { |
| 14 | it('is hover with a pointer and the pressed state on touch', async () => { |