mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Cleaned up output errors during tests
refs 2fa3985d42
- Running tests with error logging set to "error" lever, produced a massive amounts of errors related to failed Stripe keys. Making it hard to look through the output.
- When Ghost is running in teste environment by default it is configured with an invalid Stripe key that looks like `sk_test***`. In this case the Members migrations runs creating requiest to Stripe, which fail.
This commit is contained in:
parent
ee0b24f154
commit
33ad7c2740
@ -12,6 +12,7 @@ const {getConfig} = require('./config');
|
|||||||
async function configureApi() {
|
async function configureApi() {
|
||||||
const cfg = getConfig(settings, config, urlUtils);
|
const cfg = getConfig(settings, config, urlUtils);
|
||||||
if (cfg) {
|
if (cfg) {
|
||||||
|
cfg.testEnv = process.env.NODE_ENV.startsWith('test');
|
||||||
await module.exports.configure(cfg);
|
await module.exports.configure(cfg);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
"@tryghost/members-importer": "0.5.6",
|
"@tryghost/members-importer": "0.5.6",
|
||||||
"@tryghost/members-offers": "0.10.9",
|
"@tryghost/members-offers": "0.10.9",
|
||||||
"@tryghost/members-ssr": "1.0.23",
|
"@tryghost/members-ssr": "1.0.23",
|
||||||
"@tryghost/members-stripe-service": "0.9.2",
|
"@tryghost/members-stripe-service": "0.9.4",
|
||||||
"@tryghost/metrics": "1.0.8",
|
"@tryghost/metrics": "1.0.8",
|
||||||
"@tryghost/minifier": "0.1.12",
|
"@tryghost/minifier": "0.1.12",
|
||||||
"@tryghost/mw-error-handler": "0.1.8",
|
"@tryghost/mw-error-handler": "0.1.8",
|
||||||
|
16
yarn.lock
16
yarn.lock
@ -2109,7 +2109,21 @@
|
|||||||
jsonwebtoken "^8.5.1"
|
jsonwebtoken "^8.5.1"
|
||||||
lodash "^4.17.11"
|
lodash "^4.17.11"
|
||||||
|
|
||||||
"@tryghost/members-stripe-service@0.9.2", "@tryghost/members-stripe-service@^0.9.2":
|
"@tryghost/members-stripe-service@0.9.4":
|
||||||
|
version "0.9.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/@tryghost/members-stripe-service/-/members-stripe-service-0.9.4.tgz#2e07cfa31dddba1d2bdde2d6b7449bc2c4bc6118"
|
||||||
|
integrity sha512-22e7IlNx3D49YK4bdi3wknQ0Tz1nW9zqpq4MIlbLYjGeC8zBR1v1LSMG7NyQR8chErgp8u51xnC6YyQgDd9iAw==
|
||||||
|
dependencies:
|
||||||
|
"@tryghost/debug" "^0.1.4"
|
||||||
|
"@tryghost/domain-events" "^0.1.9"
|
||||||
|
"@tryghost/errors" "^1.2.5"
|
||||||
|
"@tryghost/logging" "^2.0.5"
|
||||||
|
"@tryghost/member-events" "^0.4.1"
|
||||||
|
leaky-bucket "^2.2.0"
|
||||||
|
lodash "^4.17.21"
|
||||||
|
stripe "^8.174.0"
|
||||||
|
|
||||||
|
"@tryghost/members-stripe-service@^0.9.2":
|
||||||
version "0.9.2"
|
version "0.9.2"
|
||||||
resolved "https://registry.yarnpkg.com/@tryghost/members-stripe-service/-/members-stripe-service-0.9.2.tgz#c5e2a9d6410a6c66dfe35a67d90fa03ba44b58f6"
|
resolved "https://registry.yarnpkg.com/@tryghost/members-stripe-service/-/members-stripe-service-0.9.2.tgz#c5e2a9d6410a6c66dfe35a67d90fa03ba44b58f6"
|
||||||
integrity sha512-wmx4Q19PGN0DxMfgbuH3whgeq+t5hggPtvLpxSBUbuu30kSvZgFqJwse9GGU7DkaD3WaMqDa57F5vrHRd8IEjA==
|
integrity sha512-wmx4Q19PGN0DxMfgbuH3whgeq+t5hggPtvLpxSBUbuu30kSvZgFqJwse9GGU7DkaD3WaMqDa57F5vrHRd8IEjA==
|
||||||
|
Loading…
Reference in New Issue
Block a user