diff --git a/test/development/app-dir/experimental-lightningcss/experimental-lightningcss.test.ts b/test/development/app-dir/experimental-lightningcss/experimental-lightningcss.test.ts index 5f925e71fb017..06dc1ad7755a1 100644 --- a/test/development/app-dir/experimental-lightningcss/experimental-lightningcss.test.ts +++ b/test/development/app-dir/experimental-lightningcss/experimental-lightningcss.test.ts @@ -1,22 +1,16 @@ -import { createNextDescribe } from 'e2e-utils' +import { nextTestSetup } from 'e2e-utils' +import { describeVariants as describe } from 'next-test-utils' -createNextDescribe( - 'experimental-lightningcss', - { +describe.each(['turbo'])('experimental-lightningcss', () => { + const { next } = nextTestSetup({ files: __dirname, - }, - ({ next }) => { + }) + + it('should support css modules', async () => { // Recommended for tests that check HTML. Cheerio is a HTML parser that has a jQuery like API. - ;(process.env.TURBOPACK ? describe : describe.skip)( - 'with it enabled', - () => { - it('should support css modules', async () => { - const $ = await next.render$('/') - expect($('p').text()).toBe('hello world') - // swc_css does not include `-module` in the class name, while lightningcss does. - expect($('p').attr('class')).toBe('style-module__hlQ3RG__blue') - }) - } - ) - } -) + const $ = await next.render$('/') + expect($('p').text()).toBe('hello world') + // swc_css does not include `-module` in the class name, while lightningcss does. + expect($('p').attr('class')).toBe('style-module__hlQ3RG__blue') + }) +})