Fork me on GitHub
#kaocha
<
2022-12-26
>
plexus10:12:19

• For the first one just press enter in the terminal where watch mode is running. • For the second one there's an open ticket and old poc PR. It's on the roadmap.

simonkatz11:12:21

Ah, thank you. The first answer doesn't quite answer my question, though. Pressing return in the terminal only re-runs tests; it doesn't reload files. Also, if I am running watch mode from a REPL I don't have a terminal. My question was really about what happens when a file's timestamp changes and it has unchanged contents. In that case no reloading happens and tests don't re-run.

simonkatz18:12:57

I've dug into the code a little. It turns out that this is the way Beholder works. The library Beholder uses under the covers, Directory Watcher, can be made to check only timestamps (and not file contents) as described at https://github.com/gmethvin/directory-watcher#configuration

simonkatz18:12:57

I've dug into the code a little. It turns out that this is the way Beholder works. The library Beholder uses under the covers, Directory Watcher, can be made to check only timestamps (and not file contents) as described at https://github.com/gmethvin/directory-watcher#configuration