Skip to content

Commit 97668a8

Browse files
committed
chore: hide Strapi start up messages while testing
1 parent fce4edd commit 97668a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

playground/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export default {
1919
async bootstrap({ strapi }: { strapi: Core.Strapi }) {
2020
// Seed the database with some test data for the integration tests.
2121
if (process.env.NODE_ENV === 'test') {
22+
// Hide repeated startup messages while running tests.
23+
strapi.config.set('server.logger.startup.enabled', false);
24+
2225
// Give the public role some permissions to test with
2326
const roles = await strapi
2427
.service('plugin::users-permissions.role')

0 commit comments

Comments
 (0)