From 693ea110359dfbc81251812882d33468b50ff494 Mon Sep 17 00:00:00 2001 From: CODe <71spates.bravest@icloud.com> Date: Sun, 5 Jan 2025 19:01:49 +0100 Subject: [PATCH] Fix typo Update README.md --- apps/mobile/e2e/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mobile/e2e/README.md b/apps/mobile/e2e/README.md index 881e91cc6d2..f10c2a0bbb1 100644 --- a/apps/mobile/e2e/README.md +++ b/apps/mobile/e2e/README.md @@ -51,7 +51,7 @@ E2E tests should remain as close as possible to production, but sometimes mockin Only mocking entire files is supported at the moment, so you may need to reorganize functions. To mock a file, create a new one with the same name and extension `mock.ts` (e.g. `AnimatedHeader.ts` -> `AnimatedHeader.mock.ts`) in the same directory. The metro bundler will override any file that has a `mock.ts` equivalent in Detox runs. -Android native views based on jetpack compose and libraries utilizing long-running asynchronouse background processes like sentry are not supported by detox currently. Imports mocking is unfortunatelly not supported by detox yet. If such problems occur, the entire component using problematic library needs to be mocked or a component exposing only targeted library needs to be created and then it can be mocked, precisely replacing only targeted library. +Android native views based on jetpack compose and libraries utilizing long-running asynchronouse background processes like sentry are not supported by detox currently. Imports mocking is unfortunately not supported by detox yet. If such problems occur, the entire component using problematic library needs to be mocked or a component exposing only targeted library needs to be created and then it can be mocked, precisely replacing only targeted library. To mock a component for specific platform follow this pattern: iOS: `AnimatedHeader.ts` -> `AnimatedHeader.ios.mock.ts`