guess it's slightly OT, but which testing framewor...
# testing
z
guess it's slightly OT, but which testing framework do people use for their javascript side of their cfml apps?
j
I've no experience with it myself, but I've heard Jest is decent.
g
We use either Mocha & Chai or Jest, but Jest is the more up to date version
a
I've done only proof-of-concept / spike front-end testing, and swerved Jest as it seemed clumsy to me. I've used Mocha and Chai and liked them, and had a quick peek at Puppeteer (all documented here: https://blog.adamcameron.me/2021/01/part-8-testing-simple-web-page-built.html). In talking to QA automation bods recently, they are falling on the side of cypress.io though, as it's a bit more usable than Puppeteer, and is all zeitgeisty, apparently.
z
we use https://github.com/codeceptjs/CodeceptJS for our QA automation, it's ok, just takes a while to run. once I suggested moving to using selectors rather than waiting for text, we got less errors as copy got updated
👍 1
s
agree with Adam on Jest, too clunky Cypress previously, now playwright
j
+1 for Playwright. I tried Cypress and had issues which there were open issues for but Cypress devs didn't seem very responsive even though there were a lot of people with the same issue... I then tried CodeceptJS which was nice but it's just a layer on top of another framework which is supposed to allow you to switch frameworks - but I didn't really see the benefit of that so just moved to Playwright itself. So far very happy with Playwright, great docs, good support, frequent updates and it's very fast...
👀 1
j
great docs, good support, frequent updates and it's very fast...
This is clearly impossible!
j
@joechastain LOL - oh yeah I forgot to mention ... it's made by Microsoft (gasp) :)
🤣 1