mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
a3cc66be50
refs https://github.com/TryGhost/Toolbox/issues/136 - we nuke and reinitialize the DB many times between tests - this forms a good portion of the time taken and we shouldn't be spending so much time on just resetting the DB back to a known state - this commit switches out the knex-migrator reset + init calls for SQLite to a function which keeps a clean copy of the DB and copies the file back when we "reset" - for MySQL, existing functionality is kept - this massively speeds up tests because it saves ~700ms+ for every reset - whilst this change seems to work, it's just the start so there's a lot more refactoring needed. this change is currently gated to CI until it's deemed safe/sane enough to run on local machines without blowing up |
||
---|---|---|
.. | ||
fixtures | ||
mocks | ||
admin-utils.js | ||
api.js | ||
assertions.js | ||
configUtils.js | ||
db-utils.js | ||
e2e-utils.js | ||
fixture-utils.js | ||
index.js | ||
overrides.js | ||
redirects.js | ||
url-service-utils.js | ||
urlUtils.js |