mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What? * upgrades turbopack for `getResolve` in webpack loaders * add missing resolve-url-loader to turbopack for full sass support Closes PACK-2634
24 lines
607 B
TypeScript
24 lines
607 B
TypeScript
/* eslint-env jest */
|
|
|
|
import { nextTestSetup } from 'e2e-utils'
|
|
import { colorToRgb } from 'next-test-utils'
|
|
|
|
describe('Good Nested CSS Import from node_modules', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
dependencies: {
|
|
sass: '1.54.0',
|
|
},
|
|
})
|
|
|
|
it('should render the page', async () => {
|
|
const browser = await next.browser('/')
|
|
expect(
|
|
await browser.elementByCss('.red-text').getComputedCss('color')
|
|
).toBe(colorToRgb('red'))
|
|
expect(
|
|
await browser.elementByCss('.blue-text').getComputedCss('color')
|
|
).toBe(colorToRgb('blue'))
|
|
})
|
|
})
|