UnlyEd/next-typescript-api-zeit-boilerplate

View on GitHub
jest.extends.ts

Summary

Maintainability
A
0 mins
Test Coverage
// XXX All expect.extend() utilities loaded here will be available for all tests, they also might need to be declared in jest.d.ts
import {
  toMatchOneOf,
  toMatchShapeOf,
} from 'jest-to-match-shape-of'; // See https://www.npmjs.com/package/jest-to-match-shape-of
// Import utilities that extend Jest "expect" function by themselves
import './src/utils/testing/toContainObject';

// Extend Jest "expect" function
expect.extend({
  toMatchOneOf,
  toMatchShapeOf,
});