@@ -11,7 +11,6 @@ import {
11
11
getExecutedCode ,
12
12
getModuleSource ,
13
13
getWarnings ,
14
- readsAssets ,
15
14
} from './helpers/index' ;
16
15
17
16
describe ( 'loader' , ( ) => {
@@ -310,7 +309,7 @@ describe('loader', () => {
310
309
expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors' ) ;
311
310
} ) ;
312
311
313
- it ( 'should have same "contenthash" with "css-loader" and without source maps' , async ( ) => {
312
+ it . only ( 'should have same "contenthash" with "css-loader" and without source maps' , async ( ) => {
314
313
const compiler = getCompiler (
315
314
'./contenthash/basic-css.js' ,
316
315
{ } ,
@@ -343,7 +342,7 @@ describe('loader', () => {
343
342
expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors' ) ;
344
343
} ) ;
345
344
346
- it ( 'should have same "contenthash" with "css-loader" and with source maps' , async ( ) => {
345
+ it . only ( 'should have same "contenthash" with "css-loader" and with source maps' , async ( ) => {
347
346
const compiler = getCompiler (
348
347
'./contenthash/basic-css.js' ,
349
348
{ } ,
@@ -376,7 +375,7 @@ describe('loader', () => {
376
375
expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors' ) ;
377
376
} ) ;
378
377
379
- it ( 'should have same "contenthash" with "postcss-loader" and without source maps' , async ( ) => {
378
+ it . only ( 'should have same "contenthash" with "postcss-loader" and without source maps' , async ( ) => {
380
379
const compiler = getCompiler (
381
380
'./contenthash/basic-postcss.js' ,
382
381
{ } ,
@@ -419,7 +418,7 @@ describe('loader', () => {
419
418
expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors' ) ;
420
419
} ) ;
421
420
422
- it ( 'should have same "contenthash" with "postcss-loader" and with source maps' , async ( ) => {
421
+ it . only ( 'should have same "contenthash" with "postcss-loader" and with source maps' , async ( ) => {
423
422
const compiler = getCompiler (
424
423
'./contenthash/basic-postcss.js' ,
425
424
{ } ,
@@ -462,7 +461,7 @@ describe('loader', () => {
462
461
expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors' ) ;
463
462
} ) ;
464
463
465
- it ( 'should have same "contenthash" with "sass-loader" and without source maps' , async ( ) => {
464
+ it . only ( 'should have same "contenthash" with "sass-loader" and without source maps' , async ( ) => {
466
465
const compiler = getCompiler (
467
466
'./contenthash/basic-sass.js' ,
468
467
{ } ,
@@ -559,7 +558,7 @@ describe('loader', () => {
559
558
) ;
560
559
const stats = await compile ( compiler ) ;
561
560
562
- expect ( readsAssets ( compiler , stats ) ) . toMatchSnapshot ( 'module' ) ;
561
+ expect ( Object . keys ( stats . compilation . assets ) ) . toMatchSnapshot ( 'module' ) ;
563
562
expect ( getWarnings ( stats ) ) . toMatchSnapshot ( 'warnings' ) ;
564
563
expect ( getErrors ( stats ) ) . toMatchSnapshot ( 'errors' ) ;
565
564
} ) ;
0 commit comments