Msw
migration
byCodemod

Msw/2/Print Handler

/icons/calendar.svg

Last update

Jul 24, 2024

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