mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
- 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 |
||
---|---|---|
.. | ||
fixtures | ||
mocks | ||
admin-api-test-agent.js | ||
admin-utils.js | ||
api.js | ||
assertions.js | ||
configUtils.js | ||
content-api-test-agent.js | ||
db-overrides.js | ||
db-utils.js | ||
e2e-framework-mock-manager.js | ||
e2e-framework.js | ||
e2e-utils.js | ||
fixture-utils.js | ||
index.js | ||
members-api-test-agent.js | ||
overrides.js | ||
redirects.js | ||
test-agent.js | ||
url-service-utils.js | ||
urlUtils.js |