gentest
Generate complete test cases for your code using Jest, Vitest, or Mocha testing frameworks to ensure code reliability and functionality.
Instructions
【生成测试】为代码生成完整的测试用例(支持 Jest/Vitest/Mocha)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | 需要测试的代码 | |
| framework | No | 测试框架:jest, vitest, mocha(默认 jest) |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"description": "需要测试的代码",
"type": "string"
},
"framework": {
"description": "测试框架:jest, vitest, mocha(默认 jest)",
"type": "string"
}
},
"required": [],
"type": "object"
}