Skip to content

Add cross-search export content tests#1161

Merged
karilint merged 4 commits into
mainfrom
codex/crosssearch-export-content-tests-757
May 21, 2026
Merged

Add cross-search export content tests#1161
karilint merged 4 commits into
mainfrom
codex/crosssearch-export-content-tests-757

Conversation

@karilint
Copy link
Copy Markdown
Collaborator

Closes #757

Summary

  • add direct Supertest coverage for the streamed cross-search CSV export response
  • parse the CSV body in the API test and assert representative headers, filtered rows, and sorted row order
  • verify the export omits the internal full_count field from the CSV output

Validation

  • git diff --check
  • npm run lint:backend
  • npm run tsc:backend
  • cd backend && DOTENV_CONFIG_PATH=../.test.env NODE_OPTIONS='-r dotenv/config' npx jest src/api-tests/crossSearch/export.test.ts --runInBand --config jest-config.js --detectOpenHandles --forceExit
  • commit hook: npm run lint and npm run tsc

@karilint
Copy link
Copy Markdown
Collaborator Author

@copilot Please review this pull request.

Copy link
Copy Markdown
Contributor

Copilot AI commented May 21, 2026

@copilot Please review this pull request.

Reviewed. No additional code changes are needed for this PR after review. Validation run results: npm run lint and npm run tsc passed; targeted export API test is currently blocked locally because the test DB is not reachable (localhost:3306) in this environment. Commit: 5b62f18.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /opt/hostedtoolcache/node/24.15.0/x64/bin/node /opt/hostedtoolcache/node/24.15.0/x64/bin/node /home/REDACTED/work/nowdatabase/nowdatabase/backend/node_modules/prisma/build/child {"product":"prisma","version":"5.22.0","cli_install_type":"local","information":"","local_timestamp":"2026-05-21T12:08:54Z","project_hash":"a620d0a8","cli_path":"/home/REDACTED/work/nowdatabase/nowdatabase/backend/node_modules/prisma/build/index.js","cli_pa (dns block)
  • download.cypress.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node index.js --exec install (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@karilint karilint marked this pull request as ready for review May 21, 2026 12:19
@karilint karilint merged commit 23baf8f into main May 21, 2026
3 of 4 checks passed
@karilint karilint deleted the codex/crosssearch-export-content-tests-757 branch May 21, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cross-search - Make tests for cross-search export content

2 participants