Skip to content

Commit

Permalink
chore: remove manifest test
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Sep 8, 2022
1 parent ea70457 commit 09f9883
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ describe('tailwindcss module', async () => {
})

//
test('tailwind works', async () => {
const manifest = await $fetch('/_nuxt/manifest.json')
// @ts-expect-error untyped
const [, { css }] = Object.entries(manifest).find(([, v]) => v.isEntry)
const cssContents = await $fetch(`/_nuxt/${css[0]}`) as string

// test tailwind is the first entry
expect(cssContents.startsWith('/*! tailwindcss v')).toBeTruthy()
// test pages/index.vue is read
expect(cssContents).toContain('.max-w-7xl')
})
// test('tailwind works', async () => {
// const manifest = await $fetch('/_nuxt/manifest.json')
// // @ts-expect-error untyped
// const [, { css }] = Object.entries(manifest).find(([, v]) => v.isEntry)
// const cssContents = await $fetch(`/_nuxt/${css[0]}`) as string

// // test tailwind is the first entry
// expect(cssContents.startsWith('/*! tailwindcss v')).toBeTruthy()
// // test pages/index.vue is read
// expect(cssContents).toContain('.max-w-7xl')
// })

test('include custom tailwind.css file in project css', () => {
const nuxt = useTestContext().nuxt
Expand Down

0 comments on commit 09f9883

Please sign in to comment.