(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close