Skip to content

Commit 1997981

Browse files
committed
Fix assertions
1 parent c643d19 commit 1997981

File tree

2 files changed

+5
-37
lines changed

2 files changed

+5
-37
lines changed

test/integration/css-fixtures/next.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@ module.exports = {
33
// Make sure entries are not getting disposed.
44
maxInactiveAge: 1000 * 60 * 60,
55
},
6-
webpack(cfg) {
7-
cfg.devtool = 'source-map'
8-
return cfg
9-
},
6+
productionBrowserSourceMaps: true,
107
}

test/integration/css/test/css-compilation.test.js

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -116,39 +116,8 @@ module.exports = {
116116
delete sourceMapContentParsed.file
117117
delete sourceMapContentParsed.sources
118118

119-
if (process.env.IS_TURBOPACK_TEST && useLightningcss) {
120-
expect(sourceMapContentParsed).toMatchInlineSnapshot(`
121-
{
122-
"mappings": "AAAA,qDACE,2BAKF,0DAIA,kDAIA,uCAIA",
123-
"names": [],
124-
"sourcesContent": [
125-
"@media (480px <= width < 768px) {
126-
::placeholder {
127-
color: green;
128-
}
129-
}
130-
131-
.flex-parsing {
132-
flex: 0 0 calc(50% - var(--vertical-gutter));
133-
}
134-
135-
.transform-parsing {
136-
transform: translate3d(0px, 0px);
137-
}
138-
139-
.css-grid-shorthand {
140-
grid-column: span 2;
141-
}
142-
143-
.g-docs-sidenav .filter::-webkit-input-placeholder {
144-
opacity: 80%;
145-
}
146-
",
147-
],
148-
"version": 3,
149-
}
150-
`)
151-
} else if (process.env.IS_TURBOPACK_TEST && !useLightningcss) {
119+
if (process.env.IS_TURBOPACK_TEST) {
120+
// Turbopack always uses lightningcss
152121
expect(sourceMapContentParsed).toMatchInlineSnapshot(`
153122
{
154123
"mappings": "AAAA,qDACE,2BAKF,0DAIA,kDAIA,uCAIA",
@@ -183,6 +152,7 @@ module.exports = {
183152
} else if (useLightningcss) {
184153
expect(sourceMapContentParsed).toMatchInlineSnapshot(`
185154
{
155+
"ignoreList": [],
186156
"mappings": "AAAA,qDACE,cACE,WACF,CACF,CAEA,cACE,2CACF,CAEA,mBACE,0BACF,CAEA,oBACE,kBACF,CAEA,mDACE,UACF",
187157
"names": [],
188158
"sourceRoot": "",
@@ -217,6 +187,7 @@ module.exports = {
217187
} else {
218188
expect(sourceMapContentParsed).toMatchInlineSnapshot(`
219189
{
190+
"ignoreList": [],
220191
"mappings": "AAAA,+CACE,cACE,WACF,CACF,CAEA,cACE,2CACF,CAEA,mBACE,0BACF,CAEA,oBACE,kBACF,CAEA,mDACE,WACF",
221192
"names": [],
222193
"sourceRoot": "",

0 commit comments

Comments
 (0)