jkbrzt / rrule

JavaScript library for working with recurrence rules for calendar dates as defined in the iCalendar RFC and more.
https://jkbrzt.github.io/rrule
Other
3.27k stars 507 forks source link

added test-watch script #538

Closed dereekb closed 9 months ago

dereekb commented 2 years ago

Added "test-watch" as a script using nodemon so tests are rerun automatically when a change is made in the test or src folders and any child folders.

davidgoli commented 2 years ago

Does yarn test --watch not give you a suitable experience?

dereekb commented 2 years ago

It doesn't detect changes that I'm making. I fought for a bit with mocha settings and other arguments but it wasn't working for me. I searched around a bit for a remedy using mocha alone and found suggestions for nodemon.

When I run it gets stuck on the following:

[mocha] waiting for changes...

Running macOS 12.2

davidgoli commented 9 months ago

I plan on converting the mocha tests to jest in 3.0, so we'll get --watch for free