Skip to content

Align jest.unit.config.js coverage thresholds with actual coverage#98

Closed
Copilot wants to merge 2 commits into
copilot/combine-integration-tests-and-fixesfrom
copilot/update-coverage-threshold
Closed

Align jest.unit.config.js coverage thresholds with actual coverage#98
Copilot wants to merge 2 commits into
copilot/combine-integration-tests-and-fixesfrom
copilot/update-coverage-threshold

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 30, 2026

CI failing on coverage thresholds set to 80% while actual coverage is 46%. The main jest.config.js was previously updated to realistic thresholds, but jest.unit.config.js (used by npm run test:coverage in CI) was missed.

Changes

  • Updated jest.unit.config.js coverage thresholds from 80% to:
    • branches: 35%
    • functions: 45%
    • lines: 45%
    • statements: 45%

These thresholds match current coverage levels (37-47% across metrics) and align with the previously adjusted jest.config.js.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • rpc-mumbai.maticvigil.com
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/VEXEL/VEXEL/node_modules/jest-REDACTED/node_modules/jest-worker/build/workers/processChild.js l/config node l/op�� Release/obj.targ-I lude it-clonefElYiq/n-I (dns block)
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/VEXEL/VEXEL/node_modules/jest-REDACTED/node_modules/jest-worker/build/workers/processChild.js (dns block)
  • scarf.sh
    • Triggering command: /usr/local/bin/node node ./report.js ../../nan -I lib/�� e (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

CI is failing with coverage threshold errors. All 251 tests pass but coverage is at 46% while thresholds require 80%.

Change jest.config.js coverageThreshold section (lines 14-21) from:

coverageThreshold: {
  global: {
    branches: 80,
    functions: 80,
    lines: 80,
    statements: 80
  }
}

To:

coverageThreshold: {
  global: {
    branches: 35,
    functions: 45,
    lines: 45,
    statements: 45
  }
}

This pull request was created from Copilot chat.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…erage

Co-authored-by: colleenpridemore <4281084+colleenpridemore@users.noreply.github.com>
Copilot AI changed the title [WIP] Update coverage threshold in jest.config.js Align jest.unit.config.js coverage thresholds with actual coverage Jan 30, 2026
Copy link
Copy Markdown
Contributor

Superseded by #100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants