15 lines
316 B
JavaScript
15 lines
316 B
JavaScript
|
const chai = require('chai');
|
||
|
const chaiJestSnapshot = require('@ethanresnick/chai-jest-snapshot');
|
||
|
|
||
|
chai.use(chaiJestSnapshot);
|
||
|
|
||
|
exports.mochaHooks = {
|
||
|
beforeAll() {
|
||
|
chaiJestSnapshot.resetSnapshotRegistry();
|
||
|
},
|
||
|
|
||
|
beforeEach() {
|
||
|
chaiJestSnapshot.configureUsingMochaContext(this);
|
||
|
}
|
||
|
};
|