Closed ony3000 closed 8 months ago
test('tailwindcss', async () => { expect( await format(`export function Counter() {\n return <span classes="font-bold px-1">{count}</span>;\n}`, { ...defaultOptions, filepath: 'Counter.jsx', plugins: [ 'prettier-plugin-tailwindcss', 'prettier-plugin-merge', ], tailwindAttributes: ['classes'], }), ).toBe(`export function Counter() {\n return <span classes="px-1 font-bold">{count}</span>;\n}\n`); });
The test will only pass if the options passed to the format function and the prettier config are identical.
format
Should be able to pass the test with just the options passed to the format function.
Dependency information
Steps to reproduce
The current behavior
The test will only pass if the options passed to the
format
function and the prettier config are identical.The expected behavior
Should be able to pass the test with just the options passed to the
format
function.