How do I pass in different outputDirectory for each run? #232
-
I am using jest and jest-junit to trigger my Integration test and Unit test in a typescript project. However, I have the need to generate separated junit.xml file for each. The documentation seems to have what I need but I really dont understand what it really means. Would anyone please elaborate? Am I missing something? The command below is not a valid command. You can configure these options via the command line as seen below: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured it out how I could do this. I shared what I did just in case someone has the same need. This is how I configured my run tasks in package.json |
Beta Was this translation helpful? Give feedback.
I figured it out how I could do this. I shared what I did just in case someone has the same need. This is how I configured my run tasks in package.json
"scripts": {
"start": "tsc && node dist/app/app.js",
"unit_tests": "set JEST_SUITE_NAME=Unit Tests && set JEST_JUNIT_OUTPUT_DIR=.build_output/unit-tests && jest --testMatch /unit_tests//.test.ts",
"integration_tests": "set JEST_SUITE_NAME=Integration Tests && set JEST_JUNIT_OUTPUT_DIR=.build_output/integration_tests && jest --testMatch /integration_tests//.test.ts",
"build": "tsc",
"lint": "eslint ."
},