fix: update minimum coverage threshold to 87 for frontend and backend test scripts
This commit is contained in:
@@ -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()],
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user