Skip to content

feat: introduce injectable filesystem context#169

Open
V3RON wants to merge 2 commits into
mainfrom
fix/issue-165
Open

feat: introduce injectable filesystem context#169
V3RON wants to merge 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, Comment Jul 21, 2026 10:35am

Request Review

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