Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no reference definition to wikilink to pic in test environment #1366

Open
hereistheusername opened this issue Jun 23, 2024 · 0 comments
Open
Labels
bug Something isn't working foam-core Related to API, core model or feature
Milestone

Comments

@hereistheusername
Copy link

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

  1. git clone -b test/no-reference-definition-to-pic-in-test https://github.com/hereistheusername/foam.git
  2. run and debug 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

@riccardoferretti riccardoferretti added bug Something isn't working foam-core Related to API, core model or feature labels Jun 24, 2024
@riccardoferretti riccardoferretti added this to the backlog milestone Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working foam-core Related to API, core model or feature
Projects
None yet
Development

No branches or pull requests

2 participants