mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -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 |
||
---|---|---|
.. | ||
e2e-api | ||
e2e-frontend | ||
e2e-server | ||
integration | ||
regression | ||
unit | ||
utils | ||
.eslintignore | ||
.eslintrc.js | ||
.jshintrc |