-
Notifications
You must be signed in to change notification settings - Fork 13
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
🐛 handle incident uri on windows #338
base: main
Are you sure you want to change the base?
Conversation
@abrugaro I believe what is happening is that the path-browserify doesn't attempt to handle windows paths at all so our regex breaks on paths with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like the basic function that does "take the workspace root Uri and the file Uri and produce a file path that is the relative path from workspace root to the file" needs to be moved to a file under webview-ui/src/utils
so we can actually setup some unit tests on it to make sure it works under different permutations.
c6b0358
to
5e4f353
Compare
Enable mocha tests on `webview-ui` by: - moving mocha deps to root `package.json` - adding `.mocharc.json` to each project that has unit tests - adopt `tsx` instead of `ts-node` Note: A glob is in place on `webview-ui`'s test script since no unit test currently exist to run. In that case, it isn't really an error. In the future, once a test is added, the glob check should be removed so mocha will fail if tests are not found. Supports: konveyor#338 Signed-off-by: Scott J Dickerson <[email protected]>
Enable mocha tests on `webview-ui` by: - moving mocha deps to root `package.json` - adding `.mocharc.json` to each project that has unit tests - adopt `tsx` instead of `ts-node` Note: A glob is in place on `webview-ui`'s test script since no unit test currently exist to run. In that case, it isn't really an error. In the future, once a test is added, the glob check should be removed so mocha will fail if tests are not found. Supports: konveyor#338 Signed-off-by: Scott J Dickerson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I posted #343 to enable tests to run with npm run test
. This happens at CI time. Once that PR gets in, this unit test can run!
This is a good unit test to have.
Enable mocha tests on `webview-ui` by: - moving mocha deps to root `package.json` - adding `.mocharc.json` to each project that has unit tests - adopt `tsx` instead of `ts-node` Note: A glob is in place on `webview-ui`'s test script since no unit test currently exist to run. In that case, it isn't really an error. In the future, once a test is added, the glob check should be removed so mocha will fail if tests are not found. Supports: #338 Signed-off-by: Scott J Dickerson <[email protected]>
Signed-off-by: David Zager <[email protected]>
c7f7270
to
c2b0bdb
Compare
Ugh so my fancy glob command on the test script also lets things pass when the tests actually fail: Feel free to change the |
Thank you for noticing that. I was said that the tests didn't fail 😁 |
Fixes #252