• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mongodb-js / devtools-shared / 14333329172

08 Apr 2025 12:19PM CUT coverage: 72.194%. First build
14333329172

Pull #526

github

lerouxb
reformat unrelated code
Pull Request #526: fix(mongodb-cloud-info): if the host's IP is not in a cloud's range, check if the CNAME resolves to AWS. COMPASS-8932

1444 of 2269 branches covered (63.64%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 1 file covered. (100.0%)

3071 of 3985 relevant lines covered (77.06%)

636.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

16.67
/packages/monorepo-tools/src/utils/with-progress.ts
1
import ora from 'ora';
1✔
2

3
export async function withProgress<
1✔
4
  Fn extends (this: ora.Ora, ...args: any[]) => any,
5
>(text: string, fn: Fn, ...args: Parameters<Fn>): Promise<ReturnType<Fn>> {
6
  const spinner = ora(text).start();
×
7
  try {
×
8
    const result = await fn.call(spinner, ...args);
×
9
    spinner.succeed();
×
10
    return result;
×
11
  } catch (e) {
12
    if (spinner.isSpinning) {
×
13
      spinner.fail();
×
14
    }
15
    throw e;
×
16
  }
17
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc