(env element & [options])
Returns a new test environment to test the behavior of the given element.
Returns a new test environment to test the behavior of the given element.
(mount! env state)
Mounts the element of the given test environment with the given state, and returns actions and maybe a changed state.
Mounts the element of the given test environment with the given state, and returns actions and maybe a changed state.
(send-message! comp msg)
Sends a message to the given component or the toplevel component of the given test environment, and returns actions and maybe a changed state.
Sends a message to the given component or the toplevel component of the given test environment, and returns actions and maybe a changed state.
(unmount! env)
Unmounts the element of the given test environment, and return actions and maybe a changed state.
Unmounts the element of the given test environment, and return actions and maybe a changed state.
(update! env state)
Updates the state of the element of the given test environment, and returns actions and maybe a changed state.
Updates the state of the element of the given test environment, and returns actions and maybe a changed state.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close