Skip to content

Commit

Permalink
Merge pull request #622 from snyk/fix/test-logging
Browse files Browse the repository at this point in the history
fix: store test logs to artifact in pipeline
  • Loading branch information
neil-snyk authored Nov 21, 2024
2 parents 658b8fd + 65f468f commit e02743d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit e02743d

Please sign in to comment.