mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
756221bb2d
It ran `postcss(webpack(postcss(filesource)))`, which doesn't work. And changing the order does make sense, since we do want Webpack (SCSS) to run first, and only then PostCSS? #82554 didn't catch every case
22 lines
572 B
TypeScript
22 lines
572 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('css-modules-rsc-postcss', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
dependencies: {
|
|
'postcss-nested': '4.2.1',
|
|
sass: 'latest',
|
|
},
|
|
})
|
|
|
|
it('should compile successfully and apply the correct styles', async () => {
|
|
const browser = await next.browser('/')
|
|
expect(await browser.elementByCss('p').getComputedCss('color')).toBe(
|
|
'rgb(0, 128, 0)'
|
|
)
|
|
expect(await browser.elementByCss('span').getComputedCss('color')).toBe(
|
|
'rgb(0, 128, 0)'
|
|
)
|
|
})
|
|
})
|