Ghost/ghost/core/test/utils
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
..
agents Sped up comments and feedback tests by reusing Ghost app instance 2022-11-18 14:58:35 +01:00
fixtures Added document file support to the zip importer 2023-03-02 17:54:19 +08:00
mocks Fixed Playwright tests for new email flow 2023-01-20 19:00:13 +01:00
admin-utils.js 🐛 Fixed missing published Admin assets when running in development 2022-08-04 10:55:35 +02:00
api.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
assertions.js Removed direct use of @tryghost/jest-snapshot 2023-01-17 12:50:49 +08:00
configUtils.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
db-utils.js Fixed warning about aborted connection in tests 2022-08-31 12:15:30 +01:00
e2e-framework-mock-manager.js Improved network access and mocking in tests (#16371) 2023-03-07 13:20:28 +01:00
e2e-framework.js Improved network access and mocking in tests (#16371) 2023-03-07 13:20:28 +01:00
e2e-utils.js Prevent posts-legacy tests from logging errors 2023-03-03 18:25:53 +00:00
fixture-utils.js Moved email event fetching to main thread (#16231) 2023-02-09 09:36:39 +01:00
index.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
overrides.js Improved network access and mocking in tests (#16371) 2023-03-07 13:20:28 +01:00
redirects.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
sleep.js Extracted sleep method to e2e framework module 2022-12-05 17:26:29 +07:00
url-service-utils.js Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
urlUtils.js Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00