Releases: callstackincubator/react-native-harness
v1.0.0-alpha.18
[1.0.0-alpha.18] (2025-11-03)
Breaking changes included! See the updated configuration guide for details.
Features
-
Metro Caching (#23): Added support for Metro's transformation cache, helping in cases when Metro struggles with re-transforming the same files over and over.
-
Improved Timeout Handling (#24): Enhanced timeout handling to propagate timeouts not only to the initial bootstrapping process but also to all commands sent to the device.
-
Platform Architecture Refactor (#22): Introduced a major refactor of the Harness architecture, splitting the CLI package into several smaller packages. This makes it possible to create custom platform packages without modifying existing ones. The Metro integration has also been revamped to be more reliable in CI environments.
Documentation
- GitHub Actions Workflow Update (#25): Updated the example GitHub Actions workflow for iOS by adding a step to install Watchman, which dramatically speeds up the file-crawling process and makes Harness run much faster.
v1.0.0-alpha.17
[1.0.0-alpha.17] (2025-10-22)
Features
-
Metro Regression Workaround (#21): Changed the way config is augmented to return an async function, working around a regression in Metro.
-
Migration Prompts (#19): Added migration guide to help users transition from the old CLI to the new Jest-based workflow. Users with unsupported configuration properties will be prompted to migrate.
Bug Fixes
- Bundle URL Fix (#20): Fixed incorrect URL with double slashes used during test bundling, which was causing failures due to changed behavior in React Native or Metro.
v1.0.0-alpha.16
[1.0.0-alpha.16] (2025-10-22)
Features
-
Split Setup and Setup After Env (#18): Split setup files into separate setup and setup after environment phases for better control over test initialization.
-
UI Components Support (#17): Added basic support for testing UI components in React Native Harness, enabling component-level testing capabilities.
-
Jest Wrapper CLI (#16): Replaced custom CLI implementation with a Jest wrapper, providing better integration with the Jest ecosystem and improved compatibility.
-
Jest Preset Re-export (#15): Re-exported Jest preset from the main package for easier configuration and setup.
-
Watch Mode Performance (#14): Significantly improved watch mode speed, making the development experience faster and more responsive.
-
Code Frame Error Display (#13): Enhanced error reporting in Jest with code frames, making it easier to identify and fix issues by showing the exact location of errors in context.
-
Jest Globals Detection (#12): Added validation to throw errors when Jest globals are used, ensuring proper test isolation and preventing common testing pitfalls.
-
Coverage Support (#10): Implemented code coverage reporting capabilities.
-
Reset Environment Config (#11): Added
resetEnvironmentBetweenTestFilesconfiguration property for better test isolation control. -
Auto-apply Babel Plugins (#9): Babel plugins are now automatically applied, reducing manual configuration requirements.
-
Auto-inject Harness (#8): Harness is now automatically injected into the test environment, simplifying setup process.
-
Setup Files Support (#6): Added support for Jest setup files, allowing for better test environment configuration.
-
Harness-based Jest Runner (#4): Implemented a custom Jest runner built on the Harness architecture.