Skip to content

Commit

Permalink
update jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
AshutoshSajan committed Dec 27, 2023
1 parent 2a72358 commit a3ca27c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
- name: Clean up Docker containers
if: success() || failure()
run: |
# export BRANCH_NAME=`git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3`
# export JEST_HTML_REPORTER_OUTPUT_PATH=/home/username/jest-test-output/test-reports/"$BRANCH_NAME".html
# export JEST_HTML_REPORTER_PAGE_TITLE="$BRANCH_NAME"\ Test\ Report
CONTAINER_ID=$(docker-compose ps -q node-app)
echo "Container ID: $CONTAINER_ID"
Expand Down
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ module.exports = {
'./node_modules/jest-html-reporter',
{
pageTitle: 'Test Report',
includeFailureMsg: true,
includeSuiteFailure: true,
includeObsoleteSnapshots: true,
outputPath: './testResults/test-report.html',
// includeStackTrace: true,
// includeConsoleLog: true,
},
],
],
Expand Down

0 comments on commit a3ca27c

Please sign in to comment.