Skip to content

Commit 28f3620

Browse files
committed
Temp fix for unit tests
1 parent 68e81cc commit 28f3620

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/src/adapters/NativeTurboModule.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,9 @@ export interface NativeCommandsModule {
3030
getLaunchArgs(commandId: string): Promise<any>;
3131
}
3232

33-
const NativeTurboModule = TurboModuleRegistry.getEnforcing('RNNTurboModule');
33+
let NativeTurboModule;
34+
// Temp fix for unit tests
35+
try {
36+
NativeTurboModule = TurboModuleRegistry.getEnforcing('RNNTurboModule');
37+
} catch (error) {}
3438
export default NativeTurboModule as NativeCommandsModule;

0 commit comments

Comments
 (0)