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
Then each test only specifies its delta from this baseline.
197
197
198
+
### describe / it and platform (iOS + Android)
199
+
200
+
Import from `tests/component-view/platform`. All helpers accept an optional **filter** (3rd arg): `'ios'` | `'android'` | `['ios','android']` | `{ only: 'ios' }` | `{ skip: ['android'] }`. Env: `TEST_OS=ios` or `TEST_OS=android` to run only one OS.
|`describeForPlatforms(name, define, filter?)`| One describe per OS. Inside, `define({ os })`; use `it()` or `itForPlatforms()` — each runs once per that OS. |
205
+
|`itForPlatforms(name, (ctx) => {}, filter?)`| One `it` per OS. Callback receives `{ os }`. |
206
+
|`itOnlyForPlatforms(name, fn, filter?)`| Same as `itForPlatforms` but registers `it.only`. |
207
+
|`itEach(table)(name, (row) => {}, filter?)`| One `it` per table row × per OS. Use `$key` in name to interpolate row fields. |
208
+
|`describeEach(table)(name, (row) => { it('...', () => {}); }, filter?)`| One describe per row × per OS. Use `$key` in name. |
209
+
|`getTargetPlatforms(filter?)`| Returns `['ios','android']` (or filtered list) for custom loops. |
210
+
211
+
Example — `itEach` (each case runs on iOS and Android):
0 commit comments