diff --git a/test/e2e-api/members/webhooks.test.js b/test/e2e-api/members/webhooks.test.js index c42b39c81c..5207bb6816 100644 --- a/test/e2e-api/members/webhooks.test.js +++ b/test/e2e-api/members/webhooks.test.js @@ -8,7 +8,6 @@ let adminAgent; describe('Members API', function () { before(async function () { - process.env.WEBHOOK_SECRET = 'pissoff'; // Weird - most of the mocks happen after getting the agent // but to mock stripe we want to fake the stripe keys in the settings. // And it's initialised at boot - so mocking it before diff --git a/test/utils/overrides.js b/test/utils/overrides.js index 0f572f5fbf..c65629f874 100644 --- a/test/utils/overrides.js +++ b/test/utils/overrides.js @@ -1,4 +1,5 @@ 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');