From fdb6916baff47c7d07c05bfc588c063e1cb9903f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 9 Mar 2022 18:15:04 +0000 Subject: [PATCH] Set CI=true when running UI tests (#10394) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit At the moment when I run make to build Prometheus npm tests are run as part of the process. By default jest will run in interactive mode, unless CI env variable is set, meaning that it will run forever watching for file changes. This means that to build the binary I need to wait for jest to start and then press Q to exit it, which seems unnecessary. Set CI=true for npm scripts so it always run in as a single run instead of watch mode. Signed-off-by: Ɓukasz Mierzwa --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a1d57f9e0..2f2625fc8 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ ui-build-module: .PHONY: ui-test ui-test: - cd $(UI_PATH) && npm run test:coverage + cd $(UI_PATH) && CI=true npm run test:coverage .PHONY: ui-lint ui-lint: