Closed
Description
Using jscodeshift.
Codemods allow you to transform your code to make breaking changes but without breaking the code. Codemods take a JS file as input and turn them into Abstract Syntax Trees (AST) and apply transformations on this AST later converting them back to JS again.
It would pretty much let users transform their existing tap/tape/mocha tests to AVA with minimal manual changes. From tap/tape would be the easiest as they have very similar syntax and semantics. This would result in an incredible onboarding experience! 🦄
Let me know if anyone would be interested in working on codemods for transitioning from either tap, tape, or mocha. I would be happy to mentor about the differences between tap/tape/mocha and AVA.
Resources
- https://medium.com/@cpojer/effective-javascript-codemods-5a6686bb46fb
- https://medium.com/@cpojer/javascript-codemod-community-update-81f5c9cc60e6
- https://medium.com/nfl-engineers/nfl-codemods-migrating-a-monolith-1e3363571707
- https://www.youtube.com/watch?v=d0pOgY8__JM
- https://vramana.github.io/blog/2015/12/21/codemod-tutorial/
- https://vramana.github.io/blog/2016/01/13/codemods-path-to-painless-updgrade-in-ember/
- https://github.com/reactjs/react-codemod
- https://github.com/5to6/5to6-codemod
From #178.