diff --git a/frontend/vitest.config.ts b/frontend/vitest.config.ts index 3f3ce487..5ac8abbd 100644 --- a/frontend/vitest.config.ts +++ b/frontend/vitest.config.ts @@ -3,9 +3,9 @@ import react from '@vitejs/plugin-react' // Dynamic coverage threshold (align local and CI) const coverageThresholdValue = - process.env.CHARON_MIN_COVERAGE ?? process.env.CPM_MIN_COVERAGE ?? '85.0' + process.env.CHARON_MIN_COVERAGE ?? process.env.CPM_MIN_COVERAGE ?? '87.0' const coverageThreshold = Number.parseFloat(coverageThresholdValue) -const resolvedCoverageThreshold = Number.isNaN(coverageThreshold) ? 85.0 : coverageThreshold +const resolvedCoverageThreshold = Number.isNaN(coverageThreshold) ? 87.0 : coverageThreshold export default defineConfig({ plugins: [react()], diff --git a/scripts/frontend-test-coverage.sh b/scripts/frontend-test-coverage.sh index 856afc16..9940a857 100755 --- a/scripts/frontend-test-coverage.sh +++ b/scripts/frontend-test-coverage.sh @@ -12,7 +12,7 @@ sleep 1 ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" FRONTEND_DIR="$ROOT_DIR/frontend" -MIN_COVERAGE="${CHARON_MIN_COVERAGE:-${CPM_MIN_COVERAGE:-85}}" +MIN_COVERAGE="${CHARON_MIN_COVERAGE:-${CPM_MIN_COVERAGE:-87}}" cd "$FRONTEND_DIR" diff --git a/scripts/go-test-coverage.sh b/scripts/go-test-coverage.sh index cf0b27a7..ecafcda6 100755 --- a/scripts/go-test-coverage.sh +++ b/scripts/go-test-coverage.sh @@ -11,7 +11,7 @@ sleep 1 ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" BACKEND_DIR="$ROOT_DIR/backend" COVERAGE_FILE="$BACKEND_DIR/coverage.txt" -MIN_COVERAGE="${CHARON_MIN_COVERAGE:-${CPM_MIN_COVERAGE:-85}}" +MIN_COVERAGE="${CHARON_MIN_COVERAGE:-${CPM_MIN_COVERAGE:-87}}" generate_test_encryption_key() { if command -v openssl >/dev/null 2>&1; then