Excellent video. You don't force me to come back for a dozen or so sloppily scripted talks that go at a snail's pace; instead I can go from "zero to hero" with a meaty topic like Jest LWC testing in a couple of hours. One pro tip I might recommend: It is very easy to get JSON for wire tests via the CLI. Just run your query using 'sf data query ...' and include the '--json' output option and redirect standard output to a file. Then you will have to strip off a couple of levels of cruft enclosing the data you really want - i.e., that big old array of records you queried for - but that doesn't take a moment. If I ever got around to things I guess I might write a jq filter to strip that stuff off every time. Oh well...
If you're jumping around a lot in this video and you get lost, make sure to at least watch the chapter about the beforeEach method at 27:57. It will likely get you back on track. Also, Something I realize I forgot to mention in this video is, these days if you install the Salesforce CLI I believe it also installs node.js and npm, so you may not need to actually install them if you have recently installed the Salesforce CLI.
@CodingWithTheForce... There is an error at 1:18:14. The JSON data is not available in the connectedCallback for accounts. I had to get that data via the renderedCallback. Thanks for making this video. Huge help! Keep up the awesome work.
ThanksYou Great Content to start with JEST. waiting for some advanced topics
Excellent video. You don't force me to come back for a dozen or so sloppily scripted talks that go at a snail's pace; instead I can go from "zero to hero" with a meaty topic like Jest LWC testing in a couple of hours. One pro tip I might recommend: It is very easy to get JSON for wire tests via the CLI. Just run your query using 'sf data query ...' and include the '--json' output option and redirect standard output to a file. Then you will have to strip off a couple of levels of cruft enclosing the data you really want - i.e., that big old array of records you queried for - but that doesn't take a moment. If I ever got around to things I guess I might write a jq filter to strip that stuff off every time. Oh well...
Thanks for this. I was looking for this
If you're jumping around a lot in this video and you get lost, make sure to at least watch the chapter about the beforeEach method at 27:57. It will likely get you back on track.
Also, Something I realize I forgot to mention in this video is, these days if you install the Salesforce CLI I believe it also installs node.js and npm, so you may not need to actually install them if you have recently installed the Salesforce CLI.
Seeing all the test failures as you went along was perfect. That type of stuff happens all the time, but it's also why we test!
I half-wonder of those "mistakes" were on purpose? They were instructive in-and-of themselves.
One of my absolute favorite walk-throughs. Perfect!
Thanks!
Thank you, very interesting
Thanks you for this video. Very helpful as always
cool, thank you for your sharing🥳
@CodingWithTheForce... There is an error at 1:18:14. The JSON data is not available in the connectedCallback for accounts. I had to get that data via the renderedCallback. Thanks for making this video. Huge help! Keep up the awesome work.
Are you going to TrailblazerDx this year?
Can you do one session salesforce delta deployment in azure devops yaml pipeline CiCD