You can run your function locally and test it using crossplane render
with these example manifests.
# Run the function locally
hatch run development# Then, in another terminal, call it with these example manifests
crossplane render xr1.yaml composition.yaml functions.yaml \
--required-resources secret.yaml --extra-resources environment.yaml -r