rsnext/test/e2e/postcss-config-cjs/index.test.ts
hrmny 1cb3a0b73d
fix(turbopack): remove tailwindcss from default external packages (#66706)
### Why?
Importing `tailwind/tailwind.css` is not possible right now with
turbopack, and there's no reason it needs to be marked as external.

### How?

Closes PACK-3013
Fixes #64837
2024-06-10 16:23:03 +02:00

26 lines
715 B
TypeScript

import { FileRef, nextTestSetup } from 'e2e-utils'
import { join } from 'path'
describe('postcss-config-cjs', () => {
const { next } = nextTestSetup({
files: new FileRef(join(__dirname, 'app')),
dependencies: {
tailwindcss: '2.2.19',
postcss: '8.3.5',
},
})
it('works with postcss.config.cjs files', async () => {
let browser = await next.browser('/')
try {
const text = await browser.elementByCss('.text-6xl').text()
expect(text).toMatch(/Welcome to/)
const cssBlue = await browser
.elementByCss('#test-link')
.getComputedCss('color')
expect(cssBlue).toBe('rgb(37, 99, 235)')
} finally {
await browser.close()
}
})
})