when creating unit test in jest, I found that code in test environment cannot resolve the URI of a wikilink to picture, whereas it can do that in actual running environment. In an actual example, executing update-wikiling results in different result in running and testing environments, and the former is correctly. Fix this problem would be helpful in further development test.
Describe the bug
when creating unit test in jest, I found that code in test environment cannot resolve the URI of a wikilink to picture, whereas it can do that in actual running environment. In an actual example, executing
update-wikiling
results in different result in running and testing environments, and the former is correctly. Fix this problem would be helpful in further development test.Small Reproducible Example
https://github.com/hereistheusername/foam/tree/test/no-reference-definition-to-pic-in-test
Steps to Reproduce the Bug or Issue
vscode-jest-tests
in.vscode/launch.json
Expected behavior
I expect the test code should generate reference definition as running command
foam-vscode.update-wikilink-definitions
in actual vscode.Screenshots or Videos
No response
Operating System Version
macOS
Visual Studio Code Version
Version: 1.90.2
Additional context
No response