0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/test/utils
Hannah Wolfe 7e6800b2b8
Improved dev tooling (#13118)
This commit achieves a few things:

- ☑️  No longer having to remember whether a command is yarn something or grunt something
- ☑️  Simplification of tools hopefully making them easier to remember and use 
- ☑️  Complete removal of the need for grunt from our test tooling

Several of the tools still use grunt under the hood, but the **entrypoint** should aways be `yarn xxx`.

- `grunt main` -> `yarn main`
- `grunt dev` -> `yarn dev`
- `grunt build` -> `yarn build`
- `grunt test:file-or-folder` -> `yarn test file-or-folder`
- `grunt test-unit` -> `yarn test:unit`
- `grunt test-acceptance` -> `yarn test:acceptance`
- `grunt test-regression` -> `yarn test:regression`
- `grunt validate` -> removed due to lack of use

There is now also `yarn test:all` to run all 3 classes of tests

This PR also reorders & restructures the Gruntfile extensively so that:

- The remaining useful commands are all at the top of the file
- Config and other blah happens after all the useful commands
- All release-only config happens in the release task at the very end of the file

---

DONE:

* Removed all references to npm/bower
* Removed all references to lint / deprecated command
* Moved debug to yarn dev:debug
* Removed all references to travis
* Removed broken help task + useless comment
* Removed unused knex-migrator and clean:test setup tasks
* Added new test commands, removed grunt validate
* Moved stubClientFiles to test utility and use in the few tests that need it
* Used mocha in yarn directly except grunt test:x
* Swapped grunt test for yarn test
* extensive cleanup and reshuffling
2021-07-05 20:02:22 +01:00
..
fixtures Added webp image support (#13105) 2021-07-02 09:37:54 +01:00
mocks 🔥 Added support for Node 14 2020-10-23 12:57:02 +01:00
acceptance-utils.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
admin-utils.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
api.js Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
assertions.js
configUtils.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
db-utils.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
fixture-utils.js Refactored shutdown and reset for settings 2021-06-30 15:18:15 +01:00
index.js Moved acceptance test utils into own file 2021-06-01 13:17:45 +01:00
old-integration-utils.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
overrides.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
redirects.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
url-service-utils.js Replaced db.ready event with direct call to urlservice 2021-02-23 10:05:59 +00:00
urlUtils.js Swapped out usage of stubUrlUtils for configUtils 2021-06-21 11:07:30 +01:00