Skip to content

Native engine: should the real Reanimated run by default? #841

Open

Description

@danfry1

Reanimated has two official Jest modes: its mock, where animations land at once, and the real library with setUpTests(), where mappers run and timed animations need timers advanced. A suite is written against one of them. The native engine serves the mock by default; presets: { reanimated: false } runs the real library, and vitest-native migrate writes it for suites whose Jest setup ran the real library (#834).

Open question: should the native engine run the real library by default? Flipping it would fix suites written for the real library and break suites written for the mock in the same silent way, so it needs evidence first:

  • real suites run both ways, recording which Jest mode each uses;
  • the per-file cost of loading the real Reanimated and Worklets graph, measured by count;
  • Gesture Handler over the real Worklets under Reanimated 4.7.

If the default changes, it ships as a documented default change. Follow-up to #834.

Activity

  1. added
    enhancement
    area:presets
    priority:low
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:presetsenhancementpriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions