0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed extra console times for test utils

- Think it's pretty clear these functions take ~30ms consistently
- Not interesting to optimise these when the whole restart takes seconds
This commit is contained in:
Hannah Wolfe 2021-02-19 15:30:40 +00:00
parent edbf9a7076
commit 09eadad667

View file

@ -119,7 +119,6 @@ let ghostServer;
* @TODO: Optimise this by making it optional / selective
*/
const exposeFixtures = async () => {
console.time('Expose fixtures'); // eslint-disable-line no-console
const fixturePromises = {
roles: models.Role.findAll({columns: ['id']}),
users: models.User.findAll({columns: ['id', 'email']}),
@ -135,8 +134,6 @@ const exposeFixtures = async () => {
for (let i = 0; i < keys.length; i += 1) {
module.exports.existingData[keys[i]] = results[i].toJSON(context.internal);
}
console.timeEnd('Expose fixtures'); // eslint-disable-line no-console
})
.catch((err) => {
console.error('Unable to expose fixtures', err); // eslint-disable-line no-console
@ -145,8 +142,6 @@ const exposeFixtures = async () => {
};
const prepareContentFolder = (options) => {
console.time('Prepare Content Folder'); // eslint-disable-line no-console
const contentFolderForTests = options.contentFolder;
/**
@ -175,8 +170,6 @@ const prepareContentFolder = (options) => {
if (options.copySettings) {
fs.copySync(path.join(__dirname, 'fixtures', 'settings', 'routes.yaml'), path.join(contentFolderForTests, 'settings', 'routes.yaml'));
}
console.timeEnd('Prepare Content Folder'); // eslint-disable-line no-console
};
// CASE: Ghost Server is Running