mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 09:52:06 +03:00
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);
|
||
|
}
|
||
|
};
|