http-e2e-testing
Implement end-to-end testing for web applications using HTTP requests. Use when the task requires API endpoint testing, request/response validation, or integration testing. Triggers: API testing, endpoint validation, HTTP test, integration test, e2e test.
| Name | http-e2e-testing |
|---|---|
| Path | http-e2e-testing |
| Version | 1.0.0 |
| Origin | local |
| Source | SkillHub |
| Author | seekthought |
| Tags | testing e2e api http integration-test |
| Compatibility | Requires Node.js, TypeScript, axios, and jest. |
| License | MIT |
Install
skillctl install -r skillhub http-e2e-testing
HTTP End-to-End Testing Skill
This skill provides capabilities for performing end-to-end testing of web applications by sending HTTP requests to API endpoints and validating responses.
normally, e2e test have a dedicated test directory, e.g. e2e-tests, and the test files are organized by feature or module.
<case_name>.test.ts: test files that contain the e2e test cases.setup.ts: setup and teardown logic for the e2e tests, such as starting and stopping the test server, and preparing test data.utils.ts: utility functions for the e2e tests, such as HTTP request helpers, data generators, and common assertions.
Http client
- When using typescript, please use
axiosas the http client for sending requests and receiving responses. and usejestas the test runner and assertion library for writing test cases.