Ghost/ghost/core/test/unit/server
Naz 945ebd4806
Fixed ERR_NOCK_NO_MATCH warning during test runs
refs https://github.com/TryGhost/Toolbox/issues/389

- The e2e test suite log was full of ERR_NOCK_NO_MATCH warnings when the logging level was set to "warn". The cause of this warning was legit duplicated webhook trigger processing on test environment. Gah!
- The source of duplicate webhook processing was duplication of event handlers. Event handlers were registered multiple times for same event because of the singleton nature of the "common/events" module - it remains the same instance and is not cleaned up between reboots. The deeper issue of events module initialization should be solved separately, this slightly hacky approach fixes the problem now and highlights it to be tackled in the future.
2022-09-01 12:25:47 +08:00
..
adapters Added basic memory cache storage implementation 2022-08-05 02:28:33 +12:00
data Switched off email alerts for subscription cancellation by default (#15304) 2022-08-24 18:54:00 +05:30
lib Fixed ERR_NOCK_NO_MATCH warning during test runs 2022-09-01 12:25:47 +08:00
models Added ENUM validation for member/subscription created events (#15312) 2022-08-25 15:39:37 +02:00
services 🐛 Fixed newsletters not rendering with non-HTML safe chars (#15331) 2022-08-30 11:26:01 +01:00
web Moved Cache-Control middleware to separate package 2022-08-11 14:14:20 +02:00
notify.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
overrides.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00