Skip to content

Commit 26cce7e

Browse files
committed
Fix test
1 parent 8ac02c2 commit 26cce7e

File tree

2 files changed

+33
-30
lines changed

2 files changed

+33
-30
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ module.exports = {
77
cfg.devtool = 'source-map'
88
return cfg
99
},
10+
productionBrowserSourceMaps: true,
1011
}

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

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ module.exports = {
183183
} else if (useLightningcss) {
184184
expect(sourceMapContentParsed).toMatchInlineSnapshot(`
185185
{
186+
"ignoreList": [],
186187
"mappings": "AAAA,qDACE,cACE,WACF,CACF,CAEA,cACE,2CACF,CAEA,mBACE,0BACF,CAEA,oBACE,kBACF,CAEA,mDACE,UACF",
187188
"names": [],
188189
"sourceRoot": "",
@@ -216,36 +217,37 @@ module.exports = {
216217
`)
217218
} else {
218219
expect(sourceMapContentParsed).toMatchInlineSnapshot(`
219-
{
220-
"mappings": "AAAA,+CACE,cACE,WACF,CACF,CAEA,cACE,2CACF,CAEA,mBACE,0BACF,CAEA,oBACE,kBACF,CAEA,mDACE,WACF",
221-
"names": [],
222-
"sourceRoot": "",
223-
"sourcesContent": [
224-
"@media (480px <= width < 768px) {
225-
::placeholder {
226-
color: green;
227-
}
228-
}
229-
230-
.flex-parsing {
231-
flex: 0 0 calc(50% - var(--vertical-gutter));
232-
}
233-
234-
.transform-parsing {
235-
transform: translate3d(0px, 0px);
236-
}
237-
238-
.css-grid-shorthand {
239-
grid-column: span 2;
240-
}
241-
242-
.g-docs-sidenav .filter::-webkit-input-placeholder {
243-
opacity: 80%;
244-
}
245-
",
246-
],
247-
"version": 3,
248-
}
220+
{
221+
"ignoreList": [],
222+
"mappings": "AAAA,+CACE,cACE,WACF,CACF,CAEA,cACE,2CACF,CAEA,mBACE,0BACF,CAEA,oBACE,kBACF,CAEA,mDACE,WACF",
223+
"names": [],
224+
"sourceRoot": "",
225+
"sourcesContent": [
226+
"@media (480px <= width < 768px) {
227+
::placeholder {
228+
color: green;
229+
}
230+
}
231+
232+
.flex-parsing {
233+
flex: 0 0 calc(50% - var(--vertical-gutter));
234+
}
235+
236+
.transform-parsing {
237+
transform: translate3d(0px, 0px);
238+
}
239+
240+
.css-grid-shorthand {
241+
grid-column: span 2;
242+
}
243+
244+
.g-docs-sidenav .filter::-webkit-input-placeholder {
245+
opacity: 80%;
246+
}
247+
",
248+
],
249+
"version": 3,
250+
}
249251
`)
250252
}
251253
})

0 commit comments

Comments
 (0)