Skip to content

Commit 9d33b13

Browse files
test: check
1 parent 6dbb901 commit 9d33b13

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test/loader.test.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
getExecutedCode,
1212
getModuleSource,
1313
getWarnings,
14-
readsAssets,
1514
} from './helpers/index';
1615

1716
describe('loader', () => {
@@ -310,7 +309,7 @@ describe('loader', () => {
310309
expect(getErrors(stats)).toMatchSnapshot('errors');
311310
});
312311

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 () => {
314313
const compiler = getCompiler(
315314
'./contenthash/basic-css.js',
316315
{},
@@ -343,7 +342,7 @@ describe('loader', () => {
343342
expect(getErrors(stats)).toMatchSnapshot('errors');
344343
});
345344

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 () => {
347346
const compiler = getCompiler(
348347
'./contenthash/basic-css.js',
349348
{},
@@ -376,7 +375,7 @@ describe('loader', () => {
376375
expect(getErrors(stats)).toMatchSnapshot('errors');
377376
});
378377

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 () => {
380379
const compiler = getCompiler(
381380
'./contenthash/basic-postcss.js',
382381
{},
@@ -419,7 +418,7 @@ describe('loader', () => {
419418
expect(getErrors(stats)).toMatchSnapshot('errors');
420419
});
421420

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 () => {
423422
const compiler = getCompiler(
424423
'./contenthash/basic-postcss.js',
425424
{},
@@ -462,7 +461,7 @@ describe('loader', () => {
462461
expect(getErrors(stats)).toMatchSnapshot('errors');
463462
});
464463

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 () => {
466465
const compiler = getCompiler(
467466
'./contenthash/basic-sass.js',
468467
{},
@@ -559,7 +558,7 @@ describe('loader', () => {
559558
);
560559
const stats = await compile(compiler);
561560

562-
expect(readsAssets(compiler, stats)).toMatchSnapshot('module');
561+
expect(Object.keys(stats.compilation.assets)).toMatchSnapshot('module');
563562
expect(getWarnings(stats)).toMatchSnapshot('warnings');
564563
expect(getErrors(stats)).toMatchSnapshot('errors');
565564
});

0 commit comments

Comments
 (0)