jose-compu / jose-compu/edgeshield
test: add bot fingerprint cases for common crawlers and CLI tools
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
## Summary
Expand `test/bot/fingerprint.test.ts` with realistic user-agent fixtures.
## Tasks
Add table-driven tests (or individual `it` blocks) for:
- `Googlebot`, `bingbot` → low score
- `curl`, `python-requests`, `scrapy` → elevated score
- Empty/missing `user-agent` → suspicious signals
Use `Request` + headers only — no network calls.
## Skills needed
Vitest, basic HTTP headers.
## Acceptance criteria
- [ ] At least 6 new user-agent scenarios
- [ ] `npm test` green
Contributor guide
Research direction
Start in test/bot/fingerprint.test.ts and review the existing fingerprint test patterns. Add at least six Request-and-headers-only scenarios covering the listed crawler, CLI, and empty or missing user-agent cases, then run npm test. Done means all scenarios are covered and the test suite is green.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100