CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-nock

HTTP server mocking and expectations library for Node.js testing environments

67

0.98x
Overview
Eval results
Files

Evaluation results

20%

-23%

Traffic Recording Replay Helper

Traffic recording and replay definitions

Criteria
Without context
With context

Recorder setup

0%

0%

Header capture

53%

0%

Stop and cleanup

33%

0%

Fixture write

100%

100%

Playback definitions

0%

0%

Passthrough option

100%

100%

Reset lifecycle

100%

0%

0%

Catalog Mock Helper

Path and query matching

Criteria
Without context
With context

Scoped setup

0%

0%

Dynamic path match

0%

0%

Repeated tags query

0%

0%

Encoded category match

0%

0%

Pending inspection

0%

0%

92%

13%

HTTP Mock Harness

HTTP/HTTPS scope creation and verb interceptors

Criteria
Without context
With context

Scoped base URL

80%

100%

GET intercept

88%

100%

POST body match

75%

100%

Consumption check

60%

60%

Reset handling

100%

100%

56%

-9%

Header Mock Harness

Request and reply header handling

Criteria
Without context
With context

GET header match

100%

90%

Spoof blocked

50%

25%

Basic auth update

50%

40%

Default reply headers

100%

100%

Auto date and length

0%

0%

Trace echo header

100%

100%

100%

2%

Order Service Mock Responses

Response definition and error replies

Criteria
Without context
With context

Scoped setup

100%

100%

Health reply

100%

100%

Dynamic order reply

92%

100%

Request error

100%

100%

Outage response

100%

100%

100%

Network Access Guard

Network access gating and activation toggles

Criteria
Without context
With context

Blocks traffic

100%

100%

Allowlist matcher

100%

100%

Gate override

100%

100%

Hook toggling

100%

100%

Active status

100%

100%

100%

Body-Matched Mocking Helper

Request body matchers

Criteria
Without context
With context

Scoped setup

100%

100%

Webhook match

100%

100%

NDJSON predicate

100%

100%

Binary matcher

100%

100%

Verification

100%

100%

Cleanup

100%

100%

92%

10%

Mock Session Guard

Verification and lifecycle controls

Criteria
Without context
With context

Mock setup

100%

100%

Completion check

72%

80%

Pending reporting

100%

100%

Lifecycle reset

70%

100%

Run flow

66%

80%

5%

-3%

Fixture-Backed HTTP Runner

Nock Back fixture management

Criteria
Without context
With context

Back setup

0%

0%

Record mode

0%

0%

Lockdown replay

0%

0%

Update overwrite

0%

0%

Wild passthrough

30%

0%

Cleanup

50%

50%

100%

HTTP Mock Trace Recorder

Event hooks for unmatched or traced requests

Criteria
Without context
With context

Unmatched hook

100%

100%

Request trace

100%

100%

Reply trace

100%

100%

Scoped mocking

100%

100%

Teardown cleanup

100%

100%

Install with Tessl CLI

npx tessl i tessl/npm-nock
Evaluated
Agent
Claude Code

Table of Contents