Frisby.js v2.2.0 is a REST API testing framework built on top of Jest. It provides a fluent API for making HTTP requests and asserting on responses, including status codes, headers, JSON body structure, JSON types via Joi schema validation, and response time. It supports promise-based chaining for dependent HTTP calls, custom expect handlers, and integrates seamlessly with Jest's test runner. Maintained by the community, it sees occasional updates.
npm install frisbyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic Frisby test with status check, Joi schema validation, and promise chaining.
Update Node.js to >=14.17.0.
Use `.expect('json', { key: value })` instead of `.expect('json', 'key', value)`.Ensure `return` statement before the Frisby call chain.
Use Joi.object() for nested objects within jsonTypes.
Run `npm install --save-dev joi`.
Add `return` before the frisby call chain in the `it()` block.
Use `const frisby = require('frisby');` instead of `import frisby from 'frisby';`.Ensure schema for jsonTypes uses Joi.object() for nested structures.