Ghost/test/utils
Rishabh Garg b0df387deb
Cleaned up newsletter schema migrations (#14441)
refs https://github.com/TryGhost/Team/issues/1500

The newsletter table schema has bunch of changes to go through for new and existing columns, this consolidates the schema changes into a single re-create table migration that drops and adds the newsletter table with correct schema. The table re-create migration needs to run before any of the tables using newsletter as foreign key. The changes include -

- new columns for design related fields
- new slug column for filtering
- unique constraint to `name` column
- remove `default` column (noops the existing default column migration)
- `sender_reply_to` has a default of newsletter and a validation of ['newsletter', 'support']
- updated default values for `subscribe_on_signup` and  `recipient_filter`
2022-04-08 19:06:30 +05:30
..
fixtures Cleaned up newsletter schema migrations (#14441) 2022-04-08 19:06:30 +05:30
mocks Colocated mock-express style utilities 2021-10-20 13:18:35 +01:00
admin-api-test-agent.js Extracted TestAgent class for test utils 2022-02-21 11:19:07 +07:00
admin-utils.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
api.js Fixed handing test suite 2021-12-09 13:52:02 +04:00
assertions.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
configUtils.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
content-api-test-agent.js Added ContentAPITestAgent 2022-02-23 17:08:56 +07:00
db-utils.js Cleaned up db-utils and added jsdocs 2022-03-17 17:33:11 +00:00
e2e-framework-mock-manager.js Added event mocking to e2e framework 2022-03-28 17:32:57 +01:00
e2e-framework.js Added fixture path utility to e2e-framework 2022-03-21 11:14:54 +00:00
e2e-utils.js Added settingsCache handling to e2e-framework 2022-02-11 16:24:24 +00:00
fixture-utils.js Added default newsletter subscription for new members (#14431) 2022-04-07 08:30:00 +05:30
index.js Fixed bad setup call in settings integration test 2022-03-16 14:03:02 +00:00
members-api-test-agent.js Extracted TestAgent class for test utils 2022-02-21 11:19:07 +07:00
overrides.js Revert "Added global setup to reset DB before test run" 2022-03-16 21:10:49 +00:00
redirects.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
test-agent.js Removed @tryghost/jest-snapshot dependency 2022-02-22 09:41:58 +07:00
url-service-utils.js Removed unused parameter from isFinished method 2021-11-24 05:32:20 +13:00
urlUtils.js Updated test UrlUtils to use canary by default 2022-01-21 15:12:27 +00:00