fix: teest case

This commit is contained in:
Dunqing 2023-10-15 21:18:43 +08:00
parent f611d264de
commit 116f882749
2 changed files with 7 additions and 3 deletions

View File

@ -64,6 +64,10 @@ export default {
\\"./resources/views/**/*.blade.php\\",
\\"./resources/js/**/*.{<%- extension %>,<%- extension %>x,vue}\\",
],
<% } else if (framework === 'astro') { %>
content: [
'./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}',
],
<% } %>
theme: {
container: {
@ -130,6 +134,6 @@ export default {
},
},
},
plugins: [],
plugins: [animate],
}"
`;

View File

@ -3,6 +3,6 @@ import { TAILWIND_CONFIG, TAILWIND_CONFIG_WITH_VARIABLES } from '../../src/utils
import { transformCJSToESM } from '../../src/utils/transformers/transform-cjs-to-esm'
test('handle tailwind config template correctly', () => {
expect(transformCJSToESM('.js', TAILWIND_CONFIG)).toMatchSnapshot()
expect(transformCJSToESM('.js', TAILWIND_CONFIG_WITH_VARIABLES)).toMatchSnapshot()
expect(transformCJSToESM('.mjs', TAILWIND_CONFIG)).toMatchSnapshot()
expect(transformCJSToESM('.mjs', TAILWIND_CONFIG_WITH_VARIABLES)).toMatchSnapshot()
})