fix: teest case
This commit is contained in:
parent
f611d264de
commit
116f882749
|
|
@ -64,6 +64,10 @@ export default {
|
||||||
\\"./resources/views/**/*.blade.php\\",
|
\\"./resources/views/**/*.blade.php\\",
|
||||||
\\"./resources/js/**/*.{<%- extension %>,<%- extension %>x,vue}\\",
|
\\"./resources/js/**/*.{<%- extension %>,<%- extension %>x,vue}\\",
|
||||||
],
|
],
|
||||||
|
<% } else if (framework === 'astro') { %>
|
||||||
|
content: [
|
||||||
|
'./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}',
|
||||||
|
],
|
||||||
<% } %>
|
<% } %>
|
||||||
theme: {
|
theme: {
|
||||||
container: {
|
container: {
|
||||||
|
|
@ -130,6 +134,6 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [],
|
plugins: [animate],
|
||||||
}"
|
}"
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,6 @@ import { TAILWIND_CONFIG, TAILWIND_CONFIG_WITH_VARIABLES } from '../../src/utils
|
||||||
import { transformCJSToESM } from '../../src/utils/transformers/transform-cjs-to-esm'
|
import { transformCJSToESM } from '../../src/utils/transformers/transform-cjs-to-esm'
|
||||||
|
|
||||||
test('handle tailwind config template correctly', () => {
|
test('handle tailwind config template correctly', () => {
|
||||||
expect(transformCJSToESM('.js', TAILWIND_CONFIG)).toMatchSnapshot()
|
expect(transformCJSToESM('.mjs', TAILWIND_CONFIG)).toMatchSnapshot()
|
||||||
expect(transformCJSToESM('.js', TAILWIND_CONFIG_WITH_VARIABLES)).toMatchSnapshot()
|
expect(transformCJSToESM('.mjs', TAILWIND_CONFIG_WITH_VARIABLES)).toMatchSnapshot()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user