-
-
Notifications
You must be signed in to change notification settings - Fork 324
Open
Description
This section of the docs is outdated: Testing with Jest or Vitest. Running unit tests with Jest (node test environment), after upgrading, leads to the following errors:
Failed to get NitroModules: The native "NitroModules" Turbo/Native-Module could not be found.
* Make sure react-native-nitro-modules/NitroModules is correctly autolinked (run `npx react-native config` to verify)
* Make sure you enabled the new architecture (TurboModules) and CodeGen properly generated the "NativeNitroModules"/NitroModules specs. See https://github.com/reactwg/react-native-new-architecture/blob/main/docs/enable-apps.md
* Make sure you are using react-native 0.75.0 or higher.
* Make sure you rebuilt the app.
* Make sure you ran `expo prebuild`.
* Make sure you ran `pod install` in the ios/ directory.
at Object.<anonymous> (node_modules/react-native-nitro-modules/src/turbomodule/NativeNitroModules.ts:20:9)
at Object.require (node_modules/react-native-nitro-modules/src/NitroModules.ts:2:1)
at Object.require (node_modules/react-native-nitro-modules/src/index.ts:2:1)
at Object.require (node_modules/react-native-mmkv/lib/createMMKV/createMMKV.js:1:1)
at Object.require (node_modules/react-native-mmkv/lib/index.js:2:1)
Also, this no longer exists: https://github.com/mrousavy/react-native-mmkv/blob/main/example/__tests__/MMKV.test.ts.
Metadata
Metadata
Assignees
Labels
No labels