You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Default mocks are loaded from `tests/api-mocking/mock-responses/defaults/`
91
92
- Feature flags mocked via `setupRemoteFeatureFlagsMock` helper
92
93
94
+
## Playwright Node Runtime Shims
95
+
96
+
Playwright specs and `FixtureBuilder` run in Node, while the app runs in React Native/Metro. If a native-only module fails during Playwright import or fixture setup, keep the app on the native implementation and isolate the Node workaround in test infrastructure.
97
+
98
+
- Use `tests/framework/nodeNativeUtilsShim.cjs` for `@metamask/native-utils` in Playwright's Node process.
99
+
- Register Node shims from Playwright framework entrypoints before importing code that may load native modules.
100
+
- Do not add JS fallbacks to shared dependency patches unless the app runtime also needs them.
101
+
- Validate with `yarn playwright test --list --project android --config tests/playwright.config.ts` before running devices.
0 commit comments