Skip to content

Releases: RamboWasReal/react-native-preflight

v0.1.5

24 Mar 19:51

Choose a tag to compare

New Test Helpers

  • swipe(direction, duration?) — swipe in a direction (default 400ms)
  • back() — press back button
  • hideKeyboard() — dismiss the keyboard
  • longPress(id) — long press element by testID
  • raw(yaml) — escape hatch for injecting any raw Maestro YAML

Improvements

  • scroll(id, direction) now generates scrollUntilVisible instead of invalid scroll
  • Multi-platform appId uses ${APP_ID} env var + --platform ios|android flag
  • generate deletes orphaned YAML files with no matching scenario
  • generate follows single-level imports to resolve external test functions
  • Show raw Maestro stderr on test failure (YAML parse errors, crashes)
  • Always display output directory path on failure
  • Validate generated YAML commands at generate time

Bug Fixes

  • scroll step was generating invalid Maestro YAML
  • Multi-platform appId was generating unsupported nested format
  • Fixed pre-existing lint errors

v0.1.4

24 Mar 15:38

Choose a tag to compare

New Test Helpers

  • scroll(id, direction) — scroll until element is visible (scrollUntilVisible)
  • swipe(direction, duration?) — swipe in a direction (default 400ms)
  • back() — press back button
  • hideKeyboard() — dismiss the keyboard
  • longPress(id) — long press element by testID
  • raw(yaml) — escape hatch for any Maestro YAML command

Improvements

  • Error reporting: Show raw Maestro stderr when tests fail without parsed results (YAML parse errors, etc.)
  • Output path: Always display output directory on failure
  • YAML validation: Warn at generate time if unknown Maestro commands are detected

Bug Fixes

  • scroll() now generates scrollUntilVisible instead of invalid scroll with direction property

v0.1.3

24 Mar 15:31

Choose a tag to compare

Bug Fixes

  • scroll command: scroll() now generates Maestro swipe instead of invalid scroll with direction property
  • scroll duration: scroll(id, direction, duration?) accepts optional duration (default 400ms)

Improvements

  • Error reporting: Show raw Maestro stderr when tests fail without parsed results (e.g. YAML parse errors)
  • Output path: Always display output directory path on failure
  • YAML validation: Warn at generate time if unknown Maestro commands are detected

v0.1.2

24 Mar 14:39

Choose a tag to compare

Bug Fix

  • Multi-platform appId: Fixed Maestro compatibility — nested appId: { ios, android } format is not supported by Maestro. Now generates appId: ${APP_ID} and passes the value via -e APP_ID=... at test time.
  • Added --platform ios|android flag to preflight test command.

Other

  • Fixed pre-existing lint errors (no-useless-escape, no-redeclare).

v0.1.0

23 Mar 18:59

Choose a tag to compare

First stable release. See CHANGELOG.md.