-
Notifications
You must be signed in to change notification settings - Fork 407
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
feat: add flow for creating LWC jest debug config #3920
Conversation
"force_lightning_lwc_mobile_log_level": "Log level used when calling SFDX Preview on Mobile command." | ||
"force_lightning_lwc_mobile_log_level": "Log level used when calling SFDX Preview on Mobile command.", | ||
"force_lightning_lwc_debugger": "Debug: LWC Jest Tests", | ||
"force_lightning_lwc_debugger_desc": "Debug configuretion for running LWC jest tests in vscode." |
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.
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.
"name": "%force_lightning_lwc_debugger%", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "^\"\\${workspaceFolder}/node_modules/.bin/sfdx-lwc-jest\"", |
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.
Will forward slashes for windows as well?
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 believe so but intend to verify. I did some splunking at https://github.com/jest-community/vscode-jest/blob/e3dbd7299a13730b34697601a10e323ba6286649/package.json#L337 and followed their existing pattern.
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.
@gbockus-sf - I'm the QA for this story as well. I will run a sanity check on windows today.
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've been fighting it this AM. I think there will be an update required for windows. Will keep you posted
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.
@jag-sfdc verified with circle build 31400 we are good on windows 👍
What does this PR do?
Add a new debugger configuration for LWC jest tests.
A few items to note that were different from how the tickets was written.
What issues does this PR fix or reference?
@W-10536658@
Functionality Before
No debug configuration available for LWC jest tests
Functionality After