Skip to content

[jest/vitest] Duplicate imports added during partial migrationΒ #58

@codemod-com-bot

Description

@codemod-com-bot

Faulty codemod

filed on behalf of @Stanzilla

It looks like the migration does not check for existing imports of vitest before adding new ones, means if you are in the middle of a partial migration it keeps adding new imports at the top of every file

https://github.com/codemod-com/commons/tree/main/codemods/jest/vitest

Estimated impact

Numbers about your specific codemod run:

  • Total number of files/instances transformed: X
  • Number of files/instances missed by the codemod (FN): X
  • Number of files/instances mistakenly transformed (FP): X

Anything else that helps the community prioritize, e.g.:

  • I still need this fix for my current or upcoming migration.
    OR
  • I manually fixed my issue, but I'm reporting this for other community members.
    ert the contents of a log file generated by the codemod run here.

Additional context

Add any other context about the problem here. This might include the target project, an explanation of the faulty output related to business logic, relevant links, etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions