- Fork this repository on GitHub so it exists under your own GitHub account
- After cloning the project from your own repository:
- Run
npm install - Run
npm testto make sure that the testing setup works
- Run
- Create a new folder under src/ for every leetcode question
- Each folder should contain an
index.tsandindex.test.tsfileindex.tsis for creating the function required for the leetcode question- Make sure you export the function
index.test.tsis for testing the function you created by importing it along with node's testing functions- See
src/repo-test/index.test.tsfor an example
- See
- After writing a test, you can run all tests by running
npm testin the root directory