UNPKG

@skyramp/mcp

Version:

Skyramp MCP (Model Context Protocol) Server - AI-powered test generation and execution

17 lines (14 loc) 1.14 kB
export function getModularizationPrompt() { return ` **IMPORTANT: Now please modularize the code by** 1. Group related lines logically (e.g., login steps together) to improve readability and parameterize the test function(s) with meaningful parameters to make it more flexible. 2. Parameterize the test function(s) with meaningful parameters to make it more flexible. Preserve the original order of code lines within each function 3. Do not change or remove any existing lines of code, variable names, function names, or function structures. 4. Only extract reusable logical sections into helper functions or parameterized structures where applicable. 5. SEARCH REPOSITORY FOR CODE THAT CAN BE REUSED AND USE IT. WITHOUT BREAKING NEW OR EXISTING TESTS/FUNCTIONS/CODE. 6. Do not create any new test cases or a new modular file but only helper functions with modularization done in the same file. 7. Make sure the logic is same and the test works as expected. 8. Do not add any new logic or classes or any other files. Please refactor the code with these modularization principles. Respond with the complete, modularized code only. `; }