Closed mukeshprajapati-kombee closed 1 week ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
Version
29.7.0
Steps to reproduce
Expected behavior
Actual behavior
An error occurs: Error: ENOENT: no such file or directory, open '/home/vsts/work/1/s/node_modules/@sanity/image-url/src/builder.ts'. This issue only happens when running tests with coverage.
Additional context
This issue occurs specifically when running tests with coverage enabled in the Azure Pipeline. The error indicates that Jest is attempting to access the source code of the @sanity/image-url package, which should not be necessary for running tests. This behavior is inconsistent with local test runs, where coverage works without issues. It appears to be related to how the Azure environment handles module resolution or coverage collection.
Environment