mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-25 13:45:52 +00:00
* feat: enhance translation capabilities for Bruno to Postman conversion - Added support for translating req.getHost(), req.getPath(), and req.getQueryString() to their Postman equivalents. - Implemented translation for req.getPathParams() to pm.request.url.variables. - Introduced handling for bru.visualize() to pm.visualizer.set() with various argument types. - Added tests to validate new translation features and ensure correct behavior for URL-related methods and visualizer functionality. * rm: duplicates * refactor: remove bru.visualize transformation and associated tests * feat: enhance BDD-style assertion translations in Postman converter - Updated transformation logic to translate BDD-style assertions like pm.response.to.be.ok, pm.response.to.be.success, and others to their corresponding expect statements. - Added comprehensive tests to validate the new translations for various response status checks. - Improved handling of BDD assertions within test blocks to ensure accurate translation. * fix: correct variable naming in transformation logic for Postman converter - Updated variable names in the transformation logic to improve clarity and consistency. - Ensured that the correct nodes are replaced and added to the transformedNodes set during processing. * fix: improve AST mutation handling in Postman to Bruno translation - Enhanced the processTransformations function to capture stable references before mutating the AST, ensuring correct node replacement and insertion. - Added a defensive guard for ExpressionStatements to prevent errors when accessing undefined properties. - Improved the logic for inserting remaining nodes after the grandparent in reverse order to maintain the correct sequence. * fix: remove unnecessary defensive guard in AST mutation for Postman to Bruno translation