You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the following error when running bit test for any react-native components. ✖ service "tester" of env "teambit.react/react-native" has failed. error: Cannot destructure property 'config' of 'options' as it is undefined.
Steps to Reproduce
create a new react-native workspace with the bit template (bit new react-native my-rn-workspace)
create a new react-native component bit create react-native my-comp in the workspace
bit compile then bit test
Expected Behavior
tests will run without initial error preventing tests from running
Specifications
Bit version: 0.0.888 and 0.0.945
Workspace type: (harmony)
Additional context
NOTE: this issue is because of this issue with running jest v27 with version 0.66.4 of react-native, see here.
The text was updated successfully, but these errors were encountered:
Workaround for now (until the react-native env rn version is updated to 0.70.6 or above):
Set any jest-related packages in the workspace.jsonc file to version 27, and add the following overrides to the teambit.dependencies.dependency-resolver config in workspace.jsonc: "overrides": { "@jest/create-cache-key-function": "^27.0.1" },
Getting the following error when running
bit test
for any react-native components.✖ service "tester" of env "teambit.react/react-native" has failed. error: Cannot destructure property 'config' of 'options' as it is undefined.
Steps to Reproduce
bit new react-native my-rn-workspace
)bit create react-native my-comp
in the workspacebit compile
thenbit test
Expected Behavior
tests will run without initial error preventing tests from running
Specifications
Additional context
NOTE: this issue is because of this issue with running jest v27 with version 0.66.4 of react-native, see here.
The text was updated successfully, but these errors were encountered: