jose-compu / jose-compu/edgeshield

test: add bot fingerprint cases for common crawlers and CLI tools

Open Beginner friendly
#33 0 comments 0 reactions 0 assignees View on GitHub
bot good first issue testing
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.