0.0.1 • Published 2 years ago

@sloy/jest-setup v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

JEST SETUP

// jest.setup.js:

import {expect} from '@jest/globals';
import withSetup from '@sloy/jest-setup';


expect.extend(withSetup);
// plus.spec.js:

describe('function plus', () => {

  it.each([
    // result, ...args
    [2, 1, 1],
    [6, 2, 2, 2],
    [0],
  ])(
    'returns correct sum %p for provided %p',
    expect(plus).toMapExact,
  );

})
0.0.1

2 years ago

0.0.0

2 years ago