File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ describe('"sourceMap" option', () => {
482
482
expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors' ) ;
483
483
} ) ;
484
484
485
- it ( 'should generate source maps when css was extracted and do not change "[contenthash]" on different platform' , async ( ) => {
485
+ it . only ( 'should generate source maps when css was extracted and do not change "[contenthash]" on different platform' , async ( ) => {
486
486
const compiler = getCompiler (
487
487
'./source-map/basic.js' ,
488
488
{ } ,
@@ -528,8 +528,10 @@ describe('"sourceMap" option', () => {
528
528
529
529
const extractedCSS = readAsset ( chunkName , compiler , stats ) ;
530
530
531
- // eslint-disable-next-line no-console
532
- console . log ( chunkName ) ;
531
+ expect ( chunkName ) . toBe (
532
+ // TODO still buggy on webpack@4
533
+ webpack . version [ 0 ] === '5' ? 'main.8189c1c4f956dd69079a.css' : chunkName
534
+ ) ;
533
535
534
536
expect (
535
537
extractedCSS . replace (
You can’t perform that action at this time.
0 commit comments