File tree Expand file tree Collapse file tree
packages/ats/contracts/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 * Defaults to ./coverage.json in the current working directory.
1616 */
1717
18+ /* eslint-disable @typescript-eslint/no-require-imports */
1819const fs = require ( "fs" ) ;
1920const path = require ( "path" ) ;
2021const { execSync } = require ( "child_process" ) ;
22+ /* eslint-enable @typescript-eslint/no-require-imports */
2123
2224// ── ANSI ─────────────────────────────────────────────────────────────────────
2325const R = "\x1b[0m" ;
@@ -177,7 +179,7 @@ try {
177179 . map ( ( line ) => path . resolve ( gitRoot , line . slice ( 3 ) . trim ( ) ) ) ;
178180
179181 pendingEntries = allEntries . filter ( ( e ) => pendingPaths . includes ( e . fullPath ) ) ;
180- } catch ( _ ) {
182+ } catch {
181183 // not a git repo or git unavailable
182184}
183185
Original file line number Diff line number Diff line change @@ -815,7 +815,7 @@ if ! $SKIP_COVERAGE && $ALL_OK; then
815815 # Build the coverage command respecting --test-file and --test-grep.
816816 # --testfiles filters files; TEST_GREP is passed via env var (read by hardhat.config.ts).
817817 COVERAGE_CMD=(npx hardhat coverage)
818- if [[ -n " $_ats_wrapper " ]]; then
818+ if [[ -n " ${ _ats_wrapper:- } " ]]; then
819819 COVERAGE_CMD+=(--testfiles " $_ats_wrapper " )
820820 elif [[ -n " $TEST_FILE " ]]; then
821821 COVERAGE_CMD+=(--testfiles " $TEST_FILE " )
You can’t perform that action at this time.
0 commit comments