Closed ony3000 closed 8 months ago
plugins
plugins: [ 'prettier-plugin-tailwindcss', 'prettier-plugin-merge', ],
test('tailwindcss', async () => { expect( await format(`export function Counter() {\n return <span className="font-bold px-1">{count}</span>;\n}`, { ...defaultOptions, filepath: 'Counter.jsx', plugins: [ require.resolve('prettier-plugin-tailwindcss'), 'prettier-plugin-merge', ], }), ).toBe(`export function Counter() {\n return <span className="px-1 font-bold">{count}</span>;\n}\n`); });
Test failed.
Test passed.
Dependency information
Steps to reproduce
plugins
in prettier config as follows:The current behavior
Test failed.
The expected behavior
Test passed.
Refs