92eecbfdff
### What? * upgrades turbopack for `getResolve` in webpack loaders * add missing resolve-url-loader to turbopack for full sass support Closes PACK-2634
20 lines
500 B
TypeScript
20 lines
500 B
TypeScript
/* eslint-env jest */
|
|
|
|
import { nextTestSetup } from 'e2e-utils'
|
|
import { colorToRgb } from 'next-test-utils'
|
|
|
|
describe('Catch-all Route CSS Module Usage', () => {
|
|
const { next } = nextTestSetup({
|
|
files: __dirname,
|
|
dependencies: {
|
|
sass: '1.54.0',
|
|
},
|
|
})
|
|
|
|
it('should render the module', async () => {
|
|
const browser = await next.browser('/post')
|
|
expect(
|
|
await browser.elementByCss('#my-div').getComputedCss('background-color')
|
|
).toBe(colorToRgb('red'))
|
|
})
|
|
})
|