Closed MeLlamoPablo closed 4 months ago
Good catch!
It seems like theres 1 failing test, could you fix that and update the PR? Thanks! 🙂
Sure thing, I'll take a look soon!
@thepassle tests work locally for me now, looks like it was an issue with my IDE forcing a new line at the end
Oh nice, thanks for fixing :) And thanks for the PR!
This PR fixes a bug in the
array.prototype.entries
codemod that attempts to substitute theconst entries = require('array.prototype.entries')
import with[].entries()
. It incorrectly derives the name of the nativeentries
method in theArray
prototype from the name of the import identifier. Therefore if I import:My code becomes:
This PR also adds a fixture to cover the non-standard import name case.