Files
0f781a6a41 [Breaking] Bump sass-loader to v16 (#84387)
This PR bumps sass-loader to v16 as Sass is deprecating the legacy JS
API, and updating sass-loader ensures compatibility with future Sass
versions.

x-ref: https://github.com/vercel/next.js/discussions/67931

This removes the silencing of the deprecation warning added at
https://github.com/vercel/next.js/pull/72632.

Supersedes https://github.com/vercel/next.js/pull/83091

---------

Co-authored-by: Maikel <[email protected]>
2025-10-07 20:28:04 +02:00

37 lines
858 B
TypeScript

/* eslint-env jest */
import { nextTestSetup } from 'e2e-utils'
import { colorToRgb } from 'next-test-utils'
const sassOptions = {
loadPaths: ['./styles'],
}
describe.each([
{ dependencies: { sass: '1.54.0' }, nextConfig: { sassOptions } },
{
dependencies: { 'sass-embedded': '1.75.0' },
nextConfig: {
sassOptions: {
...sassOptions,
implementation: 'sass-embedded',
},
},
},
])(
'Basic Module Include Paths Support ($dependencies)',
({ dependencies, nextConfig }) => {
const { next } = nextTestSetup({
files: __dirname,
dependencies,
nextConfig,
})
it('should render the module', async () => {
const browser = await next.browser('/')
expect(
await browser.elementByCss('#verify-red').getComputedCss('color')
).toBe(colorToRgb('red'))
})
}
)