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

mochajs / mocha / 18176674029
94%

Build:
DEFAULT BRANCH: main
Ran 01 Oct 2025 09:57PM UTC
Jobs 47
Files 57
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Oct 2025 09:52PM UTC coverage: 94.377% (+0.2%) from 94.197%
18176674029

push

github

web-flow
fix: watch mode using chokidar v4 (#5379)

* fix: watch mode using chokidar v4 (#5355)

Glob paths are no longer supported by chokidar starting at v4.

This update works around this by resolving `watchFiles` and `watchIgnore`
to valid paths and creating a list of matchers to determine if the files
should be allowed or ignored through the chokidar `ignored` match function.

This commit reverts changes from 8af0f1a90
so that the watched file changes are not fixed to the current directory.

Additional note: when a `watchFile` path is removed while chokidar is
watching it, recreating the `watchFile` path does not trigger events
from chokidar to rerun the tests.

* refactor: fix watch mode using chokidar v4 (#5355)

This update fixes #5355 and refactors the previous watch mode fix attempt.

Instead of only filtering the paths in the chokidar `ignored` match
function, the chokidar `all` event handler now has a guard to ensure
that only file paths that match the allowed patterns from `watchFiles`
would trigger test reruns.

Doing this solves the issue where creating/deleting directories trigger
test reruns despite the watched path being a file (e.g., `**/*.xyz`)
as the allowed patterns would not match with just the directory paths.

* docs: fix jsdoc description for `normalizeGlob()`

* test: add tests for watch mode

- Test for watched files from outside the current working directory
- Test reruns with a thousand watched files

* test: fix test for multiple watched files

* test: remove test for multiple watched files

The test is dependent on how fast the machine could create 1000 watched
files, otherwise the test could fail due to a timeout error. Reducing
the number of watched files would make the test pass, but doing so would
make it more or less similar to already existing tests. At that point,
the test does not really test the limits of possibly huge projects with
thousands of watched files, so it has been removed instea... (continued)

1462 of 1648 branches covered (88.71%)

76 of 77 new or added lines in 1 file covered. (98.7%)

3743 of 3966 relevant lines covered (94.38%)

10426.37 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
98.42
-0.11% lib/cli/watch-run.js
Jobs
ID Job ID Ran Files Coverage
1 run-test-node:requires-20.19.4-ubuntu-latest- - 18176674029.1 01 Oct 2025 09:57PM UTC 50
41.8
GitHub Action Run
2 run-test-node:requires-22.18.0-ubuntu-latest- - 18176674029.2 01 Oct 2025 09:57PM UTC 50
41.8
GitHub Action Run
3 run-test-node:reporters-22.18.0-ubuntu-latest- - 18176674029.3 01 Oct 2025 09:57PM UTC 51
62.67
GitHub Action Run
4 run-test-node:integration-22.18.0-windows-latest- - 18176674029.4 01 Oct 2025 10:02PM UTC 57
85.25
GitHub Action Run
5 run-test-node:interfaces-22.18.0-ubuntu-latest- - 18176674029.5 01 Oct 2025 09:57PM UTC 50
46.81
GitHub Action Run
6 run-test-node:reporters-18.20.8-ubuntu-latest- - 18176674029.6 01 Oct 2025 09:57PM UTC 51
62.94
GitHub Action Run
7 run-test-node:interfaces-18.20.8-ubuntu-latest- - 18176674029.7 01 Oct 2025 09:57PM UTC 50
47.08
GitHub Action Run
8 run-test-node:reporters-18.20.8-windows-latest- - 18176674029.8 01 Oct 2025 09:58PM UTC 51
62.94
GitHub Action Run
9 run-test-node:requires-18.20.8-ubuntu-latest- - 18176674029.9 01 Oct 2025 09:57PM UTC 50
42.1
GitHub Action Run
10 run-test-node:only-22.18.0-ubuntu-latest- - 18176674029.10 01 Oct 2025 09:57PM UTC 50
43.2
GitHub Action Run
11 run-test-node:requires-18.20.8-windows-latest- - 18176674029.11 01 Oct 2025 09:58PM UTC 50
42.1
GitHub Action Run
12 run-test-node:only-20.19.4-windows-latest- - 18176674029.12 01 Oct 2025 09:58PM UTC 50
43.2
GitHub Action Run
13 run-test-node:interfaces-20.19.4-windows-latest- - 18176674029.13 01 Oct 2025 09:59PM UTC 50
46.81
GitHub Action Run
14 run-test-node:unit-18.20.8-windows-latest- - 18176674029.14 01 Oct 2025 09:59PM UTC 57
66.46
GitHub Action Run
15 run-test-node:requires-20.19.4-windows-latest- - 18176674029.15 01 Oct 2025 09:59PM UTC 50
41.8
GitHub Action Run
16 run-test-node:integration-18.20.8-ubuntu-latest- - 18176674029.16 01 Oct 2025 10:01PM UTC 57
85.17
GitHub Action Run
17 run-test-node:only-24.6.0-ubuntu-latest- - 18176674029.17 01 Oct 2025 09:57PM UTC 50
43.2
GitHub Action Run
18 run-test-node:only-18.20.8-windows-latest- - 18176674029.18 01 Oct 2025 09:59PM UTC 50
43.48
GitHub Action Run
19 run-test-node:only-20.19.4-ubuntu-latest- - 18176674029.19 01 Oct 2025 09:57PM UTC 50
43.2
GitHub Action Run
20 run-test-node:unit-18.20.8-ubuntu-latest- - 18176674029.20 01 Oct 2025 09:58PM UTC 57
66.46
GitHub Action Run
21 run-test-node:interfaces-20.19.4-ubuntu-latest- - 18176674029.21 01 Oct 2025 09:57PM UTC 50
46.81
GitHub Action Run
22 run-test-node:only-24.6.0-windows-latest- - 18176674029.22 01 Oct 2025 09:58PM UTC 50
43.2
GitHub Action Run
23 run-test-node:interfaces-24.6.0-windows-latest- - 18176674029.23 01 Oct 2025 09:58PM UTC 50
46.81
GitHub Action Run
24 run-test-node:reporters-20.19.4-windows-latest- - 18176674029.24 01 Oct 2025 09:58PM UTC 51
62.67
GitHub Action Run
25 run-test-node:integration-18.20.8-windows-latest- - 18176674029.25 01 Oct 2025 10:02PM UTC 57
85.15
GitHub Action Run
26 run-test-node:requires-24.6.0-ubuntu-latest- - 18176674029.26 01 Oct 2025 09:57PM UTC 50
41.8
GitHub Action Run
27 run-test-node:interfaces-24.6.0-ubuntu-latest- - 18176674029.27 01 Oct 2025 09:57PM UTC 50
46.81
GitHub Action Run
28 run-test-node:reporters-20.19.4-ubuntu-latest- - 18176674029.28 01 Oct 2025 09:57PM UTC 51
62.67
GitHub Action Run
29 run-test-node:only-22.18.0-windows-latest- - 18176674029.29 01 Oct 2025 09:59PM UTC 50
43.2
GitHub Action Run
30 run-test-node:unit-20.19.4-ubuntu-latest- - 18176674029.30 01 Oct 2025 09:57PM UTC 57
66.36
GitHub Action Run
31 run-test-node:integration-20.19.4-ubuntu-latest- - 18176674029.31 01 Oct 2025 10:01PM UTC 57
85.15
GitHub Action Run
32 run-test-node:reporters-24.6.0-windows-latest- - 18176674029.32 01 Oct 2025 09:58PM UTC 51
62.67
GitHub Action Run
33 run-test-node:integration-20.19.4-windows-latest- - 18176674029.33 01 Oct 2025 10:02PM UTC 57
85.33
GitHub Action Run
34 run-test-node:unit-24.6.0-ubuntu-latest- - 18176674029.34 01 Oct 2025 09:57PM UTC 57
66.36
GitHub Action Run
35 run-test-node:unit-22.18.0-ubuntu-latest- - 18176674029.35 01 Oct 2025 09:57PM UTC 57
66.36
GitHub Action Run
36 run-test-node:unit-22.18.0-windows-latest- - 18176674029.36 01 Oct 2025 09:59PM UTC 57
66.36
GitHub Action Run
37 run-test-node:interfaces-22.18.0-windows-latest- - 18176674029.37 01 Oct 2025 10:00PM UTC 50
46.81
GitHub Action Run
38 run-test-node:interfaces-18.20.8-windows-latest- - 18176674029.38 01 Oct 2025 09:59PM UTC 50
47.08
GitHub Action Run
39 run-test-node:unit-24.6.0-windows-latest- - 18176674029.39 01 Oct 2025 09:59PM UTC 57
66.36
GitHub Action Run
40 run-test-node:integration-24.6.0-windows-latest- - 18176674029.40 01 Oct 2025 10:02PM UTC 57
85.17
GitHub Action Run
41 run-test-node:requires-22.18.0-windows-latest- - 18176674029.41 01 Oct 2025 09:58PM UTC 50
41.8
GitHub Action Run
42 run-test-node:unit-20.19.4-windows-latest- - 18176674029.42 01 Oct 2025 09:58PM UTC 57
66.36
GitHub Action Run
43 run-test-node:integration-22.18.0-ubuntu-latest- - 18176674029.43 01 Oct 2025 10:01PM UTC 57
85.17
GitHub Action Run
44 run-test-node:only-18.20.8-ubuntu-latest- - 18176674029.44 01 Oct 2025 09:57PM UTC 50
43.48
GitHub Action Run
45 run-test-node:integration-24.6.0-ubuntu-latest- - 18176674029.45 01 Oct 2025 10:01PM UTC 57
85.15
GitHub Action Run
46 run-test-node:requires-24.6.0-windows-latest- - 18176674029.46 01 Oct 2025 10:00PM UTC 50
41.8
GitHub Action Run
47 run-test-node:reporters-24.6.0-ubuntu-latest- - 18176674029.47 01 Oct 2025 09:57PM UTC 51
62.67
GitHub Action Run
Source Files on build 18176674029
  • Tree
  • List 57
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #18176674029
  • c2667c3b on github
  • Prev Build on main (#18174937752)
  • Next Build on main (#18176715694)
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

© 2026 Coveralls, Inc