Skip to content

Won't build Jest issue #3553

@billnbell

Description

@billnbell

Description

Jest still will not build right.

 export const setUpTests = (userConfig = {}) => {
-    const expect = require('expect');
+    const { expect } = require('@jest/globals');
     require('setimmediate');

You added a try / catch around require('expect'); but this does not help me, since I have expect loaded.

Steps to reproduce

Use SetUpTests() for Jest.

Snack or a link to a repository

none

Reanimated version

2.10.0

React Native version

0.70.0

Platforms

iOS

JavaScript runtime

No response

Workflow

No response

Architecture

No response

Build type

No response

Device

No response

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Missing reproThis issue need minimum repro scenarioNeeds reviewIssue is ready to be reviewed by a maintainerPlatform: iOSThis issue is specific to iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions