Liking cljdoc? Tell your friends :D

cljest.compilation.fs


get-latest-changes!clj

(get-latest-changes!)

Gets the latest changes from the watchers. Will wait up to 500ms for the first changes from any watcher, and if no changes occur within 500ms, returns nil.

Jest is sometimes a bit faster than our internal FileWatcher instance(s) and may call the API before any changes are detected. To avoid a race condition, which would result in nothing being picked up for compilation and Jest having out of date test code, a 500ms timeout is added, which should be more than enough to pick up any changes in this specific case.

Gets the latest changes from the watchers. Will wait up to 500ms for the first changes from any
watcher, and if no changes occur within 500ms, returns nil.

Jest is sometimes a bit faster than our internal FileWatcher instance(s) and may call the API before
any changes are detected. To avoid a race condition, which would result in nothing being picked up
for compilation and Jest having out of date test code, a 500ms timeout is added, which should be more
than enough to pick up any changes in this specific case.
sourceraw docstring

get-test-files-from-src-dirsclj

(get-test-files-from-src-dirs)
source

poll-watcher-for-changesclj

(poll-watcher-for-changes [dir watcher])
source

setup-watchers!clj

(setup-watchers!)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close