Skip to content

alexandracaulea/palindrome-checker

Repository files navigation

Palindrome Checker

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.

Installation

  1. Clone the repository: git clone https://github.com/alexandracaulea/palindrome-checker
  2. Install project dependencies by running: npm install

Using this repository

  1. For the development run: npm run dev
  2. To build run: npm run build
  3. To run tests: npm run test
  4. To watch the tests: npm run testWatch

Palindrome Checker Gif