This repository is my solution to the FoondaMate Software Engineer Coding Challenge-002. This program was built using Node.js with InquireJS for the CLI and Jest for testing.
Objective
-
Write an application (web,CLI, or any other type)
-
This application should solve equations like:
7x - 2 = 21
and2(4x + 3) + 6 = 24 -4x
-
And returns a solution like with all the steps needed to solve the equation
-
Write unit and integration tests for your code
To run this program, you'll need to have installed Node.js v16.8 or above.
First, clone the repository:
git clone https://github.com/Chinwike1/foondamate-coding-challenge-002.git
Then move into the project
cd foondamate-coding-challenge-002
And install the project dependencies
npm install
Start the program with:
npm run start
To run the test suite, run the following command in your terminal
NODE_OPTIONS=--experimental-vm-modules npx jest
This methods lets Jest support ESM imports