johnagan / clean-webpack-plugin

Compare 12649d8 ... +1 ... c0749f5

Coverage Reach
clean-webpack-plugin.ts

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 2 files from the diff.
Other files ignored by Codecov
package.json has changed.

@@ -1,6 +1,6 @@
Loading
1 1
import { sync as delSync } from 'del';
2 2
import path from 'path';
3 -
import { AssetInfo, Compilation, Compiler, Stats } from 'webpack';
3 +
import { Compilation, Compiler, Stats } from 'webpack';
4 4
5 5
export interface Options {
6 6
    /**
@@ -238,17 +238,19 @@
Loading
238 238
        /**
239 239
         * Fetch Webpack's output asset files
240 240
         */
241 -
        const assets: AssetInfo[] =
241 +
        const assets =
242 242
            stats.toJson({
243 243
                assets: true,
244 244
            }).assets || [];
245 245
246 246
        const relatedAssets = assets
247 247
            .map((asset) => {
248 -
                return ((asset.related &&
249 -
                    Array.isArray(asset.related) &&
250 -
                    asset.related) ||
251 -
                    []) as AssetInfo[];
248 +
                return (
249 +
                    (asset.related &&
250 +
                        Array.isArray(asset.related) &&
251 +
                        asset.related) ||
252 +
                    []
253 +
                );
252 254
            })
253 255
            .reduce((previousAssets, currentAssets) => {
254 256
                return [...previousAssets, ...currentAssets];

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
src/clean-webpack-plugin.ts 0.01% 98.81%
Project Totals (1 files) 98.81%
Loading