mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
80f0ba4abf
refs https://github.com/TryGhost/Toolbox/issues/214 - Having to fill out `process.env` variables in tests is a frustrating developer experience. Test environment should be configured with smart defaults, so the developer writing test cases would modify variables like this only is special test cases.
8 lines
279 B
JavaScript
8 lines
279 B
JavaScript
process.env.NODE_ENV = process.env.NODE_ENV || 'testing';
|
|
process.env.WEBHOOK_SECRET = process.env.WEBHOOK_SECRET || 'TEST_STRIPE_WEBHOOK_SECRET';
|
|
|
|
require('../../core/server/overrides');
|
|
|
|
const {mochaHooks} = require('@tryghost/jest-snapshot');
|
|
exports.mochaHooks = mochaHooks;
|