epam-short-track

Task 7. Basic Testing

Folder Name Branch Coefficient
basic-testing basic-testing 0.5

Your task is to write unit tests using Jest API.

Task Description

Your task is to create unit tests using Jest for the functions and classes, addressing scenarios like simple operations, table-driven tests, error handling, partial and API mocking, and snapshot testing, while ensuring they are properly structured and error-free.

Input Data (basic-testing package):

1. Simple tests:

2. Table tests:

3. Error handling & async:

4. Testing class:

5. Partial mocking:

6. Mocking Node.js API:

7. Mocking library API:

8. Snapshot testing:

What You Need to Do

Mentor Evaluation Criteria (100 points)