Friends I'm out and about today so we might hear some like music in thebackground and stuff but yeah today I wanted to talk about cypress drivendevelopment. I was working on something that I'm working on for the newwebsite where you can submit a recording of a question and then I'll beable to answer it's gonna be really cool but it's all like in browserrecording stuff and lots of what I was testing was like required me to haveto record something and then to continue on through the the work.Or the flow and that was super annoying to have to you know, make a changeand then go through that whole flow again and so I was like, well, this isthe perfect situation for cypress different driven development so I madelike a I don't know ten lines cypress function or or test that went throughthat I did have to do a couple fancy things to make it so that cypresswould accept a fake wave file as input which I made a maniacal laugh and Ifound online but uh, yeah, once I had that I'll set up it was really.Cool every time I made a change to anything I would just have cypress rerunit would rerun automatically and and then I could look at the terminaloutput or the console output and get a good idea of what what was going onso yeah I was really it was like nail on the head for cypress drivendevelopment.I don't think that it's always necessary but especially when you're workingon workflows and stuff and like this is the sort of thing that hot modulereplacement like yeah, maybe that work okay, but just is not going to do itfor you.For this sort of thing like I never really trusted how much of areplacement and so the and this is the one situation where people say, ohyeah how much replacements really nice if you're like what you're workingon is pretty far into some workflow or something that you don't want tohave to do over and over again, well, sometimes you do need to refresh forone reason or another and having cypress just get me back into that stateand like a half a second yeah that's awesome and it's like a real actualexperience so if you've not tried cypress driven development.I suggest that you give it.A shot because it's really helped me be reallyproductive and at the end of it. I'm I may actually be able to use this asa test as an actual test to keep me confident so there's that I hope that'sinteresting and helpful and useful to you and hope you have a spectacularday you take care and all talk to you later.
Podchaser is the ultimate destination for podcast data, search, and discovery. Learn More