(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 components;', { from: undefined }); |
| 9 | |
| 10 | return result.css; |
| 11 | }; |
| 12 | |
| 13 | describe('button plugins', () => { |
| 14 | it('keeps the colored ButtonV2 values its template strings build', async () => { |