mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
069c344495
refs TryGhost/Toolbox#158 refs TryGhost/Toolbox#129 (comment) We now have @tryghost/jest-snapshot - a suite of utilities for using snapshots with mocha, should, etc The @tryghost/express-test lib also uses it to provide chained snapshot assertions This library was created because all the existing implementations I could find, including the in use @ethanresnick/chai-jest-snapshot didn't properly support property matching. @ethanresnick/chai-jest-snapshot supposedly supported it, but the implementation was incorrect and frequently lead to false test passes. This library also has (after some back and forth) path resolution so that snapshots can live in a local __snapshots__ folder
7 lines
190 B
JavaScript
7 lines
190 B
JavaScript
process.env.NODE_ENV = process.env.NODE_ENV || 'testing';
|
|
|
|
require('../../core/server/overrides');
|
|
|
|
const {mochaHooks} = require('@tryghost/jest-snapshot');
|
|
exports.mochaHooks = mochaHooks;
|