Rest-Assured-TS (v0.1.8) is a TypeScript/JavaScript REST API test automation library inspired by Postman, RestAssured, and Karate. It supports Cucumber, Mocha, Jest, CommonJS, ES6, and TypeScript. Key differentiators include implicit Chai assertion support for JSON responses, file-based request/response handling, and JSON path validation. The library is actively maintained and aims to provide a low-code approach for REST API testing.
npm install rest-assured-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic GET request using restRequest with headers and timeout.
Use lowercase header names: 'content-type' instead of 'Content-Type'.
Use restRequest with async/await instead.
Update proxy agent configuration per new docs; test existing proxy setups.
Always JSON.stringify object bodies before passing to restRequest.
Write explicit assertions for response structure.
Wrap the call in try/catch and handle errors. Check timeout and network connectivity.
Verify the API URL. Check network connectivity and proxy configuration.
Check the JSON path expression and expected value in the test data.