This project is an example of how to simulate time on an unit test.
Let's say your system should perform regular backups every day at midnight. In order to test the function that backs up the system, you need to simulate that's midnight when the test run. Here's how to do that!
- Install dependencies
$ npm install
- Run tests
$ npm test
[Medium[(https://amirelemam.medium.com/simulate-time-in-a-unit-test-c2fb86f29254)
These files are licensed under the MIT License