Msw/2/Print Handler

1.0.1Last update Jul 24, 2024
by@Codemod
Msw
migration

A new way of listing all handlers is preferred in msw v2. This codemod replaces printHandlers() calls with the new way of doing that.

Before

worker.printHandlers();

After

worker.listHandlers().forEach((handler) => {
console.log(handler.info.header);
});

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now