This repository contains a NodeJS application written in TypeScript, along with Jest tests for testing the application's functionality.
- ALLOWING customer(s) to deposit, withdraw, transfer and check their funds.
- NOT ALLOWING customer(s) to deposit and withdraw funds that beyond of their total account balance.
- ALLOWING bank manager to check the total bank balance (summation of customer(s) funds).
Make sure you have NodeJS
and Yarn
installed on your system.
- Clone the repository:
git clone https://github.com/ellatuquero/bank-service-code-challenge.git
- Navigate to the project directory:
cd bank-service-code-challenge
- Install dependencies using Yarn:
yarn install
Write your tests in files with a .test.ts
extension. For example, if you have a TypeScript file create-account.ts, create a test file named create-account.test.ts in the same directory.
Jest is used for testing. To run tests, use the following command:
yarn start-test
Jest will automatically discover and run all the test files with the .test.ts
extension in your project. It will compile your TypeScript files to JavaScript on the fly and execute the tests. If all tests pass, Jest will provide a summary of the test results.
- Ella Tuquero