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.