0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00
ghost/test
Hannah Wolfe d50fb7c922
Added global setup to reset DB before test run
- We've been seeing weird errors with tables not existing when running tests locally
- This appears to happen after an error causes the tests to abort
- This change includes two fixes:
1. we triggers a full DB reset just before the entire test suite runs
 - this is done by wrapping the override file for tests that use a db, and supplying a mochaGlobalSetup hook
2. catch errors when attempting to do a fast truncation-based reset & init, and do a full reset & init instead

- These two changes should ensure the DB is always in the state we expect when running a new test suite
2022-03-16 20:56:17 +00:00
..
e2e-api Removed archived tiers from content api (#14329) 2022-03-16 22:02:42 +05:30
e2e-browser Added note about installing the E2E browsers 2022-02-22 10:20:40 +01:00
e2e-frontend Bumped multiple tiers to GA (#14311) 2022-03-11 20:15:44 +05:30
e2e-server Fixed ETag header for admin templates not changing between versions (#13680) 2021-10-22 14:25:58 +01:00
integration Fixed bad setup call in settings integration test 2022-03-16 14:03:02 +00:00
regression Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00
unit Refactored mapper into individual files (#14328) 2022-03-16 12:44:11 +00:00
utils Added global setup to reset DB before test run 2022-03-16 20:56:17 +00:00
.eslintignore Updated casper test fixture to latest version 2022-01-25 14:10:53 +00:00
.eslintrc.js Upgraded no-skipped-test rule to error 2021-05-26 14:57:43 +01:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00