From 65f468f9ab9c7de839f8f1c544ac647380efd194 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 21 Nov 2024 11:04:10 +0100 Subject: [PATCH] fix: store test logs to artifact in pipeline --- .circleci/config.yml | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 48118b98..4553fb74 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -137,7 +137,10 @@ jobs: - setup_remote_docker - attach_workspace: at: ~/snyk-docker-plugin - - run: npm run test-jest + - run: npm run test-jest > test-logs.txt 2>&1 + - store_artifacts: + path: test-logs.txt + destination: test-logs test_jest_windows_with_docker: <<: *windows_big steps: diff --git a/package.json b/package.json index 65d8ac47..5421805b 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "lint:commit": "commitlint --from=HEAD~5", "format": "prettier --loglevel warn --write '{lib,test}/**/*.ts' && tslint --fix --format stylish '{lib,test}/**/*.ts'", "test": "npm run test-jest", - "test-jest": "jest --ci --maxWorkers=3 --logHeapUsage", + "test-jest": "jest --ci --maxWorkers=3 --logHeapUsage --colors", "test-jest-windows": "jest --ci --maxWorkers=3 --config test/windows/jest.config.js --logHeapUsage", "prepare": "npm run build" },