setup.js 254 B

123456789101112
  1. import { use } from 'chai';
  2. import chaiJestSnapshot from 'chai-jest-snapshot';
  3. use(chaiJestSnapshot);
  4. before(function () {
  5. chaiJestSnapshot.resetSnapshotRegistry();
  6. });
  7. beforeEach(function () {
  8. chaiJestSnapshot.configureUsingMochaContext(this);
  9. });