re: Does your team write code tests for front-end code? VIEW POST

FULL DISCUSSION
 

My most recent web team did write front end (FE) tests. Unit for JS logic and user acceptance story style tests using Jest and Puppeteer. We even ended up making a Docker Image to run the tests in a headless manner.

Unit tests were reasonable easy to write in Jest. I am historically a backend dev. but was able to write some Jest unti tests with little frustration.

The process to take user stories from product/project owners and convert them to Jest logic was fairly straight forward for the type of stories we had. Leveraging the Docker image we were able to execute the tests via Jenkins as part of our continuous deployment process.

Docker + Jest + Puppeteer (Headless Chrome) : hub.docker.com/r/davidjeddy/docker...

code of conduct - report abuse