(opts)
| 51 | } |
| 52 | |
| 53 | async function expectValidReport(opts) { |
| 54 | const { bundleLabel = "bundle.js", statSize = 141 } = opts || {}; |
| 55 | |
| 56 | expect(fs.existsSync(path.resolve(__dirname, "./output/report.html"))).toBe( |
| 57 | true, |
| 58 | ); |
| 59 | const chartData = await getChartData(); |
| 60 | expect(chartData[0]).toMatchObject({ |
| 61 | label: bundleLabel, |
| 62 | statSize, |
| 63 | }); |
| 64 | } |
| 65 | |
| 66 | function generateJSONReportFrom(statsFilename) { |
| 67 | childProcess.execSync( |
no test coverage detected
searching dependent graphs…