Set CI=true when running UI tests (#10394)

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 <l.mierzwa@gmail.com>
This commit is contained in:
Łukasz Mierzwa 2022-03-09 18:15:04 +00:00 committed by GitHub
parent 7f238e6a04
commit fdb6916baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ ui-build-module:
.PHONY: ui-test .PHONY: ui-test
ui-test: ui-test:
cd $(UI_PATH) && npm run test:coverage cd $(UI_PATH) && CI=true npm run test:coverage
.PHONY: ui-lint .PHONY: ui-lint
ui-lint: ui-lint: