From 20aea8c819997d8fa33a7056959e64f278132d43 Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 15 Jul 2021 15:25:32 +0400 Subject: [PATCH] Decreased unit test's timeout refs https://github.com/TryGhost/Team/issues/860 - As major slow test have been refactored making the timeout stricter will enforce better quality unit tests in the future --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f8cc29039f..c629f8b15a 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "test": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js --timeout=60000", "test:all": "yarn test:unit && yarn test:acceptance && yarn lint", "test:debug": "DEBUG=ghost:test* yarn test", - "test:unit": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/unit' --timeout=7000", + "test:unit": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/unit' --timeout=1000", "test:acceptance": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/api-acceptance' './test/frontend-acceptance' --timeout=10000", "test:regression": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000", "test:slow": "yarn test:unit --reporter=mocha-slow-test-reporter && yarn test:acceptance --reporter=mocha-slow-test-reporter",