Jest Testing Framework

Overview

Qualified supports writing tests for JavaScript (Node 10+ only) using Jest.

Basic Example

Solution

const sum = (a, b) => a + b;

module.exports = sum;

Tests

const sum = require('./solution');

describe('Example', () => {
  test('adds 1 + 2 to equal 3', () => {
    expect(sum(1, 2)).toBe(3);
  });
});

Learn More

You can learn more on the Jest website.