just: adds snapshot just task

This commit is contained in:
Deepak Mallubhotla 2024-05-02 18:01:22 -05:00
parent 7c39475742
commit 32a7812a43
Signed by: deepak
GPG Key ID: BEBAEBF28083E022

View File

@ -34,6 +34,16 @@ test: fmt
poetry run pytest
fi
# update all test snapshots, use if snapshots are out of date
update-snapshots:
#!/usr/bin/env bash
set -euxo pipefail
if [[ "${DO_NIX_CUSTOM:=0}" -eq 1 ]]; then
pytest --snapshot-update
else
poetry run pytest --snapshot-update
fi
# format code
fmt:
#!/usr/bin/env bash