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
12649d8
... +1 ...
c0749f5
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
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 | 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]; |
Files | Coverage |
---|---|
src/clean-webpack-plugin.ts | 0.01% 98.81% |
Project Totals (1 files) | 98.81% |
c0749f5
f43ed05
12649d8