Codemod Registry
Explore community-led codemods to migrate, optimize, and transform your codebase.
Ready to contribute?
Build your own codemod and share it with the community.
Explore community-led codemods to migrate, optimize, and transform your codebase.
Build your own codemod and share it with the community.
Explore community-led codemods to migrate, optimize, and transform your codebase.
This recipe is a set of codemods that will help migrate to jasmine v5 from jasmine 4.x . The recipe includes the following codemods: - jasmine/v5/handling-env-execute-callbacks - jasmine/v5/node-boot-removal
This codemod remove `node_boot.js` as it is no longer supported in jasmin 5.0 ## Example ### Before ```ts const boot = require("jasmine-core/node_boot.js"); ``` ### After ```ts const boot = require("jasmine-core").boot; ```
This codemod migrates `Env.execute` callbacks to await. ## Example ### Before ```ts try { env.execute(null, function () { console.log("Test suite finished."); }); } catch (e) { console.log("Failed to start the test suite."); } ``` ### After ```ts try { await env.execute(); } catch (e) { console.log("Failed to start the test suite."); } ```
Build your own codemod and share it with the community.