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