shadcn-vue/packages/cli/test/utils/transform-cjs-to-esm.test.ts
Sadegh Barati d34c620055
chore: lint and enable Volar hybrid mode (#419)
* chore: update deps

* feat: enable Volar hybrid mode

* chore: lint

* chore: build registry
2024-03-20 22:29:42 +03:30

9 lines
431 B
TypeScript

import { expect, it } from 'vitest'
import { TAILWIND_CONFIG, TAILWIND_CONFIG_WITH_VARIABLES } from '../../src/utils/templates'
import { transformCJSToESM } from '../../src/utils/transformers/transform-cjs-to-esm'
it('handle tailwind config template correctly', () => {
expect(transformCJSToESM('.mjs', TAILWIND_CONFIG)).toMatchSnapshot()
expect(transformCJSToESM('.mjs', TAILWIND_CONFIG_WITH_VARIABLES)).toMatchSnapshot()
})