Repository navigation
[lexical-compiler] Bug Fix: Normalize temporary paths in watcher tests - #9195
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Hi @minwookshin! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Description
On macOS,
os.tmpdir()can return a directory under/varwhile Vite resolves the same files through/private/var. The subpath watcher invalidation test then compares two spellings of the same file and fails its module-ID assertion.Resolve the temporary directory with
fs.realpathSyncimmediately after creating it, so fixture files and expected IDs share one canonical path. The watcher implementation and assertions are unchanged.Test plan
Tested on
bc4dcc814f66e35b00f8e3b8b235e559f07454f2; the patch also applies cleanly to subsequent2fd17f0. The complete remote browser/platform matrix remains unverified locally.AI-assisted implementation and validation with OpenAI Codex.