When setting up LWC Jest tests, we should add the `--passWithNoTests` flag
The flag should be added because there are situations where there are no LWCs on the project/package. This step should not fail the pipeline (default behaviour today).
--passWithNoTests flag to the
test:lwc command solves this problem.
jq '.scripts["test:lwc"]="lwc-jest --passWithNoTests"' package.json > $tmp
The best part is that we probably don't need the
check_has_jest_tests function anymore.