You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verify that tests being run with glob (deprecated) run OK because they only found the mock files. The globAsync fails because it finds the local files of the repo, that have nothing to do with the test.
Current Behavior
Hi guys!
While developing my own plugin, I found the following issue:
Passing a "mock" tree in a test to
globAsync
returns files that match the glob in the repo where the test is being executed.Expected Behavior
globAsync
should only return files matching in the tree being passed, asglob
doesGitHub Repo
https://github.com/mpsanchis/nx-basic-repo
Steps to Reproduce
npx nx run my-plugin:test
glob
(deprecated) run OK because they only found the mock files. TheglobAsync
fails because it finds the local files of the repo, that have nothing to do with the test.Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: