(message, hint)
| 38 | const indexHtml = join(viewerDir, 'index.html'); |
| 39 | |
| 40 | function fail(message, hint) { |
| 41 | console.error(`[check-ui-build] ${message}`); |
| 42 | if (hint) console.error(`[check-ui-build] ${hint}`); |
| 43 | process.exit(1); |
| 44 | } |
| 45 | |
| 46 | if (!existsSync(indexHtml)) { |
| 47 | fail( |
no test coverage detected