In Makefile add:
.PHONY: test
test:
@if [ -z "$(ADDON)" ]; then \
echo "Error: No addon name provided. Usage: make test ADDON=<library_name>"; \
exit 1; \
else \
echo "Running tests for addon: $(ADDON)"; \
RAZZLE_JEST_CONFIG=src/addons/$(ADDON)/jest-addon.config.js yarn test src/addons/$(ADDON); \
fi
Then
$ cd clms-frontend
$ env ADDON=volto-clms-theme make test