Ghost/ghost/core/test/unit/server
Simon Backx f50224f445
Improved network access and mocking in tests (#16371)
refs https://github.com/TryGhost/Team/issues/2667

Some tests still accessed the internet. Now network access is disabled
by default. This change also introduces two helper methods related to
networking (mocking Slack and Mailgun).

This fixes two unreliable tests:
- Staff service was accessing a Slack test API -> timeout possible
- MentionSendingService was trying to send webmentions for every post
publish/change -> possible timeouts and job issues
2023-03-07 13:20:28 +01:00
..
adapters Prevent error logs from occuring in Ghost unit test suite 2023-03-01 16:37:46 +00:00
data Renamed content file importer test 2023-03-02 17:59:36 +08:00
lib Prevent error logs from occuring in Ghost unit test suite 2023-03-01 16:37:46 +00:00
models Added BookshelfMilestoneRepository implementation (#16305) 2023-02-22 15:53:29 +02:00
services Improved network access and mocking in tests (#16371) 2023-03-07 13:20:28 +01:00
web Extracted version-match middleware to separate package 2023-02-27 18:34:03 +01:00
notify.test.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
overrides.test.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00