This repository was archived by the owner on Feb 1, 2026. It is now read-only.
test(backend): Phase 2 - Add Missing Security & Error Handling Tests#373
Merged
Conversation
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Feb 1, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Feb 1, 2026
- Add XSS prevention tests for project name and description fields - Add command injection prevention tests (semicolon and pipe patterns) - Remove backtick and dollar sign tests (not security risks in browser context) Phase 2: Missing Security & Error Handling Tests 🤖 Generated with Claude Code
- Add test for control characters in pageId - Add test for oversized path segments (accept 400 or 404) Phase 2: Missing Security & Error Handling Tests 🤖 Generated with Claude Code
…rency - Add test for large but valid payloads - Add test for extremely large payloads (10MB) - Add test for concurrent scan creations Phase 2: Missing Security & Error Handling Tests 🤖 Generated with Claude Code
gander
force-pushed
the
test/missing-tests-phase2
branch
from
February 1, 2026 12:48
5b86bb3 to
49d16d9
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Phase 2 of Test Suite Quality Improvements: Add Missing Security & Error Handling Tests to improve backend test coverage and catch security vulnerabilities.
Changes
1. API Security Tests (
api-security.test.ts)2. Path Traversal Edge Cases (
path-traversal-advanced.test.ts)3. Error Handling Tests (
error-handling.test.ts) - NEW FILETest Results
All tests passing with both Node.js versions:
Node 22.21.1
api-security.test.ts: 27 tests passingpath-traversal-advanced.test.ts: 37 tests passingerror-handling.test.ts: 3 tests passingNode 24.12.0
api-security.test.ts: 27 tests passingpath-traversal-advanced.test.ts: 37 tests passingerror-handling.test.ts: 3 tests passingAbandoned Work
❌ Rate limiting tests: Investigation revealed that @ts-rest/fastify doesn't support standard Fastify route-level rate limiting configuration. Rate limiting is configured via metadata but headers are not present in responses. Would require architectural changes to implement properly.
Verification
Related
test/missing-tests-phase2🤖 Generated with Claude Code