While going through the JavaScript Algorithms and Data Structures Certification curriculum I had to write a function which checks if a string is a palindrome or not. A palindrome is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing (e.g. civic, level, eye, aha).
I've decided to take this challenge a bit further and implement an UI for it and dive more into testing. You can check the live example here.
For unit testing I've used Jest and for end to end testing I've used Puppeteer. This is my first time testing my own code and also the first time using Jest and Puppeteer in a project.
- Clone the repository:
git clone https://github.com/alexandracaulea/palindrome-checker
- Install project dependencies by running:
npm install
- For the development run:
npm run dev
- To build run:
npm run build
- To run tests:
npm run test
- To watch the tests:
npm run testWatch