Skip to content

Commit 671db08

Browse files
committed
update stylesheet count for turbopack
1 parent c0a09fb commit 671db08

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: test/integration/css/test/basic-global-support.test.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,11 @@ module.exports = {
517517
const $ = cheerio.load(content)
518518

519519
const cssSheet = $('link[rel="stylesheet"]')
520-
expect(cssSheet.length).toBe(1)
520+
if (process.env.TURBOPACK) {
521+
expect(cssSheet.length).toBe(2)
522+
} else {
523+
expect(cssSheet.length).toBe(1)
524+
}
521525
const stylesheet = cssSheet.attr('href')
522526

523527
const cssContent = (

0 commit comments

Comments
 (0)