B: Update docs and add tests - #13
Open
davidpomerenke wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary\n\n- README.md completely rewritten to describe the actual app (survey workflow, Python pipeline, all API routes, admin whitelist, full migration order, file structure) — the previous README described the original boilerplate template.\n- docs/TODO.md restructured with clearer bug descriptions and a "Recently Fixed" section.\n- vitest.config.ts added — minimal vitest setup with
@/path alias.\n- src/tests/auth.test.ts — unit tests forverifySession,generateToken, andisAllowedDomain(no DB required; covers tampered signature, expired token, uniqueness).\n- src/tests/get-base-url.test.ts — unit tests forgetBaseUrl()under various env and header configurations using mockednext/headers.\n- python/tests/test_metadata_cleaning.py — basic pytest tests forclean_symbol,normalize_text,extract_year_from_symbol; pure-function tests with no DB dependency.\n\n## Test plan\n\n- [ ]npx vitest run— TypeScript tests pass\n- [ ]uv run pytest python/tests/— Python tests pass\n- [ ]pnpm typecheck— no new TypeScript errors\n- [ ] README renders correctly on GitHub\n\n🤖 Generated with Claude CodeGenerated by Claude Code