Open aral opened 1 year ago
After a while I got this on macOS (Node v18.12.0):
~/Code/fabiospampinato/watcher ❯ npm run test
> watcher@2.2.0 test
> fava '**/test/index.js'
(node:76177) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
ℹ File: index.js
ℹ Tests: 184 passed, 0 failed
These tests are a bit finicky, you should try running them again under macOS. Under linux last time I checked if I remember correctly some tests don't pass because they don't account for some Linux-specific differences, but ultimately the library seems to work correctly there too. I should try to make these less finicky, and to make all of them pass under linux. PRs welcome I guess.
I sent https://github.com/fabiospampinato/watcher/pull/40 to fix some of the tests
It also looks to me like the failure below started in version 2.2.2:
✖ Watcher › file events (with renames) › should detect a single "change" when removing a file and creating it (2004ms) ╭ Error >────────────────────────────────────────────────────────────────────────────────>─────────────────────────────────────────────────────────╮ Expected "" to be deeply equal to "change" ────────────────────────────────────────────────────────────────────────────────>────────────────────────────────────────────────────────────────── test/index.js:1122 ╰─ t.context.deepEqualResults ( ['change'], [file] );
Run:
Errors
Linux
(Tested on Fedora Silverblue 37 using Node.js 19.3.0 and 18.12.1)
(Hangs at end.)
macOS
(Tested on macOS Monterey with Node.js 19.3.0.)
(Gets further to display test totals but also hangs; doesn’t exit.)