inertia.testing

Helpers for testing apps that use inertia-clj, with no extra dependencies.

inertia-request

(inertia-request method uri)(inertia-request method uri {:keys [version partial-component only except reset headers body query-string]})

A Ring request map as the Inertia client would send it.

opts: :version :partial-component :only :except :reset :headers :body :query-string

page

(page response)

The page object (string keys) in an Inertia JSON or initial HTML response.