Files
vercel__next.js/test/e2e/app-dir/css-modules-rsc-postcss/css-modules-rsc-postcss.test.ts
Niklas Mischkulnig 756221bb2d Turbopack: fix module rules for .module.scss (#82570)
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
2025-08-12 16:17:26 +02:00

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)'
)
})
})