{"size": 1018, "ext": "js", "max_stars_repo_path": "examples/it/index.spec.js", "max_stars_repo_name": "jd20/jest-each", "max_stars_repo_stars_event_min_datetime": "2017-06-02T13:59:49.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-24T13:35:51.000Z", "max_issues_repo_path": "examples/it/index.spec.js", "max_issues_repo_name": "jd20/jest-each", "max_issues_repo_issues_event_min_datetime": "2017-11-16T11:32:43.000Z", "max_issues_repo_issues_event_max_datetime": "2019-10-23T07:07:43.000Z", "max_forks_repo_path": "examples/it/index.spec.js", "max_forks_repo_name": "jd20/jest-each", "max_forks_repo_forks_event_min_datetime": "2018-02-12T02:08:39.000Z", "max_forks_repo_forks_event_max_datetime": "2021-06-14T03:12:24.000Z"}
{"max_stars_count": 93, "max_issues_count": 6, "max_forks_count": 5, "avg_line_length": 18.5090909091, "max_line_length": 72, "alphanum_fraction": 0.3889980354}
import each from '../../src';

describe('it', () => {
  describe('.add', () => {
    const add = (a, b) => a + b;
    each([
      [1, 2, 3],
      [2, 1, 3],
      [1000, 1, 1001]
    ]).it('returns the result of adding %s to %s', (a, b, expected) => {
      expect(add(a, b)).toBe(expected);
    });
  });

  describe('true', () => {
    each([
      [true],
      [true],
      [true]
    ]).it.only('will pass %s', (bool) => {
      expect(bool).toBe(true);
    });
  });

  describe('only wit .fit', () => {
    each([
      [true],
      [true],
      [true]
    ]).fit('will pass %s', (bool) => {
      expect(bool).toBe(true);
    });
  });

  describe('whatevz', () => {
    each([
      [':('],
      ['run'],
      ['me']
    ]).it.skip('will never run this test %s', (str) => {
      expect(str).toBe('');
    });
  });

  describe('whatevz ❌👞', () => {
    each([
      [':('],
      ['run'],
      ['me']
    ]).xit('will never run this test %s', (str) => {
      expect(str).toBe('');
    });
  });
});
