Nestjs Search
ASecurityRun critical search E2E tests against a real `elasticsearch:8` container rather than mocking the client. Start the app and container in the test harness, apply the index mapping, write a database record, wait for the asynchronous indexing job, then query Elasticsearch and assert the result. Clean both the database and index between tests, use deterministic document IDs, and test retry/failure behavior. Unit tests may mock the `SearchService` for application logic, but mocks cannot verify mapp...
- 584 stars
- 0 votes
- 0 copies
- 3 views
- Added September 5, 2026
Works with
Security analysis
100/100Pro scans all 11 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill nestjs-search --agent claude-codeAre you the author of Nestjs Search?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-nestjs-search-226b2eea)Run critical search E2E tests against a real `elasticsearch:8` container rather than mocking the client. Start the app and container in the test harness, apply the index mapping, write a database record, wait for the asynchronous indexing job, then query Elasticsearch and assert the result.
Clean both the database and index between tests, use deterministic document IDs, and test retry/failure behavior. Unit tests may mock the `SearchService` for application logic, but mocks cannot verify mappings, analyzers, serialization, or actual synchronization.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.