Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
atrofimenko opened this issue May 13, 2024 · 1 comment
Labels

Comments

@atrofimenko
Copy link

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

@cleberada
Copy link

@atrofimenko Did you had any luck on that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants