jscodeshift treats transforms that return null as having performed no code mutations. This can improve performance and avoid unnecessary rewriting of input code.
This change updates our test utility to treat codemods similar to jscodeshift.
In an upcoming change we'll update our codemod base to take advantage of this to reduce unnecessary transformations we currently see when running on larger codebases.
jscodeshift
treats transforms that return null as having performed no code mutations. This can improve performance and avoid unnecessary rewriting of input code.This change updates our test utility to treat codemods similar to
jscodeshift
.In an upcoming change we'll update our codemod base to take advantage of this to reduce unnecessary transformations we currently see when running on larger codebases.