In the project directory, you can run: yarn test It will run all the tests under the test folder yarn verify will run tslint Assumptions: There is no more than one deal or discount on one product.