Skip to content

Conversation

@dogussyaman
Copy link
Owner

Motivation

  • Remove the hardcoded mock toggle so real OpenAI parsing is enforced in non-test environments.
  • Allow tests to opt into mock parsing via an environment flag while preventing accidental mock usage in production.

Description

  • Replace the USE_MOCK_DATA constant with a useMockData flag derived from CV_PARSE_USE_MOCK and a test-environment check against NODE_ENV/DENO_ENV in supabase/functions/cv-process/index.ts.
  • Gate mock data to only be used when CV_PARSE_USE_MOCK is set to true and the runtime is a test environment, otherwise run the real OpenAI parsing flow.
  • Update the console message when using mock data to clarify it is for tests only.
  • Document the new environment variable CV_PARSE_USE_MOCK in README.md.

Testing

  • No automated tests were run for this change.}

Codex Task

@vercel
Copy link

vercel bot commented Feb 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
code-crafters Ready Ready Preview, Comment Feb 4, 2026 10:00am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant