Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 20, 2023
1 parent 5ea862d commit 036ed41
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ createNextDescribe(
},
({ next }) => {
// Recommended for tests that check HTML. Cheerio is a HTML parser that has a jQuery like API.
;(process.env.TURBOPACK ? it : it.skip)(
'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')
;(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')
})
}
)
}
Expand Down

0 comments on commit 036ed41

Please sign in to comment.