Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: switch to node test runner #1318

Merged
merged 2 commits into from
Jun 2, 2024
Merged

Conversation

43081j
Copy link
Collaborator

@43081j 43081j commented May 25, 2024

Switches to using the built-in node test runner and drops mocha.

Temporarily also introduces a TEST_TIMEOUT as --test-timeout is only available in 20.x and above, but we run CI in 18.x.

package.json Show resolved Hide resolved
@43081j
Copy link
Collaborator Author

43081j commented May 25, 2024

looks like tests are failing on windows quite often 😞

its late, ill have a look some other time soon

Switches to using the built-in node test runner and drops mocha.

Temporarily also introduces a `TEST_TIMEOUT` as `--test-timeout` is only
available in 20.x and above, but we run CI in 18.x.
@paulmillr
Copy link
Owner

all good?

@43081j
Copy link
Collaborator Author

43081j commented May 29, 2024

there's some flakiness/timing problem with the tests on windows when we use node's runner

i have a pretty hectic weekend but ill try pick it up soon and let you know

Adds a small delay in some tests after the initial path has been added
(to avoid the FS de-duping/cancelling events).
@43081j
Copy link
Collaborator Author

43081j commented Jun 2, 2024

seems we have a passing test run!

on my fork, CI still fails every now and then for this test:
https://github.com/43081j/chokidar/actions/runs/9337536632/job/25699552795#step:5:84

its a failed assertion rather than a timeout, so i will try investigate it more as the changeSpy definitely shouldn't have been called

@paulmillr paulmillr merged commit abc4688 into paulmillr:v4 Jun 2, 2024
10 checks passed
@43081j 43081j deleted the v4-test-runner branch June 2, 2024 11:09
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