Skip to content

feat: introduce injectable filesystem context - #169

Merged
V3RON merged 2 commits into
mainfrom
fix/issue-165
Aug 31, 2026
Merged

feat: introduce injectable filesystem context#169
V3RON merged 2 commits into
mainfrom
fix/issue-165

Conversation

@V3RON

@V3RON V3RON commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What is this?

Introduces a filesystem context for Harness and applies it to the GitHub Action so its filesystem-dependent behavior can be tested without host temporary directories.

How does it work?

@react-native-harness/tools now provides an AsyncLocalStorage-backed context, a real Node filesystem default, and a memfs-powered testing helper. The GitHub Action establishes that context at its entrypoints, uses getFs() in migrated code, and keeps runner logic separately callable under an in-memory filesystem.

Why is this useful?

Action tests become hermetic and faster to reason about, while the new port creates a consistent path for incrementally migrating the remaining Harness filesystem usage.

Closes #165

@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-harness Ready Ready Preview Aug 31, 2026 9:10am

Request Review

@V3RON
V3RON merged commit c588adb into main Aug 31, 2026
6 checks passed
@V3RON
V3RON deleted the fix/issue-165 branch August 31, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce a FileSystem port injected via HarnessContext (AsyncLocalStorage) for hermetic tests

1 participant