Test Coverage in Jest

In this project, we are working with a utility library. Each file in the library contains three functions, each with a different focus. Like all utility functions, these functions are good at validating inputs and returning an output.

Utility functions are incredibly helpful in keeping our applications DRY, but the best part about them is that they are also incredibly testable by nature. The goal of this project is to analyze the utility functions and write test suites that reach 100% test coverage.

The project is subdivided into the following three groups of tasks:

  • Group 1. Former Utilities
    • Task 1: Test the Sentence Case Conversion
    • Task 2: Test the Title Case Conversion
    • Task 3: Test the USD Currency Conversion
    • Task 4: Run the Format Test Suite
  • Group 2. Helper Utilities
    • Task 1: Test the Sort Function
    • Task 2: Test the Filter Function
    • Task 3: Test the Returning Day
    • Task 4: Run the Helper Test Suite
  • Group 3. Location Utilities
    • Task 1: Test the Compass Conversion Function
    • Task 2: Test the Coordinates Conversion Function
    • Test 3: Test the ZipCode Conversion Function
    • Task 4: Run the Location Test Suite