With NodeJS v20 (or superior) installed, run the following scripts:
npm clean-install
to install the project dependenciesnpm test
to run the tests
lodash
and date-fns
are already installed, feel free to use them. You can also install other libraries if you want to.
Imagine this scenario: You're working on a scheduling application that allows patients to schedule consultations with doctors. Patients should be able to schedule consultations only when the doctors are available. For simplicity, all dates used in the tasks are in UTC. That means you don't need to worry about timezone conversions.
This test consists of 5 tasks that will be important to identify when the doctors are available. The 5 tasks are in the src/
folder and there's a README for each task. We recommend you do them in order because they might depend on each other.
You have 4 hours (since downloading this project) to implement these functions and pass the tests.
Passing the tests is not a guarantee of passing the selection process. We will also evaluate your code quality. Similarly, you might not complete all 5 tasks and still be approved.
Before submitting your project, run the following command to generate the tarball for submission:
npm run pre-upload
to generate a.tar.gz
file, which will be created in theuploads
directory. This is the file you will submit as part of the hiring process.