0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44: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
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
.jshintrc