upgrade-support icon indicating copy to clipboard operation
upgrade-support copied to clipboard

Jest fails to start tests after upgrade from react-native v0.70.5 to 0.73.6

Open atrofimenko opened this issue 9 months ago • 1 comments

Environment

System: OS: macOS 14.4 CPU: (14) arm64 Apple M3 Max Memory: 58.73 MB / 36.00 GB Shell: version: 3.2.57 path: /bin/bash Binaries: Node: version: 18.20.2 path: ~/.nvm/versions/node/v18.20.2/bin/node Yarn: version: 1.22.19 path: /usr/local/bin/yarn npm: version: 10.5.0 path: ~/.nvm/versions/node/v18.20.2/bin/npm Watchman: version: 2024.04.22.00 path: /usr/local/bin/watchman Managers: CocoaPods: version: 1.14.3 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms: - DriverKit 23.4 - iOS 17.4 - macOS 14.4 - tvOS 17.4 - visionOS 1.1 - watchOS 10.4 Android SDK: API Levels: - "23" - "24" - "25" - "26" - "27" - "28" - "29" - "30" - "31" - "32" - "33" - "34" Build Tools: - 28.0.3 - 29.0.2 - 29.0.3 - 30.0.0 - 30.0.2 - 30.0.3 - 31.0.0 - 33.0.1 - 34.0.0 - 34.0.0 System Images: - android-23 | Google APIs Intel x86 Atom - android-27 | Google APIs Intel x86 Atom - android-28 | Google APIs Intel x86_64 Atom - android-30 | Google APIs Intel x86 Atom - android-30 | Google Play Intel x86 Atom - android-32 | Google Play ARM 64 v8a - android-33 | Google APIs Intel x86_64 Atom - android-VanillaIceCream | Google Play ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2023.2 AI-232.10300.40.2321.11668458 Xcode: version: 15.3/15E204a path: /usr/bin/xcodebuild Languages: Java: version: 17.0.11 path: /Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home/bin/javac Ruby: version: 3.3.1 path: /usr/local/opt/ruby/bin/ruby npmPackages: "@react-native-community/cli": Not Found react: installed: 18.2.0 wanted: 18.2.0 react-native: installed: 0.73.6 wanted: 0.73.6 react-native-macos: Not Found npmGlobalPackages: "react-native": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false

Upgrading version

0.70.5

Description

Trying to start my tests that worked before update, and them fails with a message: Configuration error:

Could not locate module  mapped as:
/Users/a.trofimenko/Documents/Work/ReactNativeProjects/zirtue-app/src/$1.

Please check your configuration for these entries:
{
  "moduleNameMapper": {
    "/^(.*)$/": "/Users/a.trofimenko/Documents/Work/ReactNativeProjects/zirtue-app/src/$1"
  },
  "resolver": undefined
}

Tried to do something with moduleNameMapper, but it didtn't help me. Need your help very much! Thank you! My config files and test example with imports:

Screenshot 2024-05-13 at 15 53 51 Screenshot 2024-05-13 at 15 53 34 Screenshot 2024-05-13 at 15 53 28

atrofimenko avatar May 13 '24 16:05 atrofimenko