A very simple PalindromeChecker TypeScript Test using Jest
- Create a palindrome checker
- It should be able to detect that a string is a palindrome
- Words like
Madam
is palindromes - Words like
Boss
is not palindromes - It should still know that something is a palindrome even if casing is off e.g. even if it is
Madam
ormadam
- It should also be able to detect palindromes in phrases like
Was It A Rat I Saw
andNever Odd or Even
- Minimal
- TypeScript v4
- Testing with Jest
Starts the application in development using nodemon
and ts-node
to do hot reloading.
Starts the app in production by first building the project with npm run build
, and then executing the compiled JavaScript at build/index.js
.
Builds the app at build
, cleaning the folder first.
Runs the jest
tests once.
Run the jest
tests in watch mode, waiting for file changes.
Format your code.
Format your code in watch mode, waiting for file changes.