How do I setup unit tests with code coverage for my monorepo that contains nodejs and dotnet apps? #843
craigbroadman
started this conversation in
General
Replies: 1 comment 2 replies
-
I'd recommend moving all of the flags into a target configuration and running with something akin to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the following command as part of a GitHub Actions workflow to execute unit tests with code coverage metrics:
npx nx affected -t test --parallel=3 --ci --code-coverage --base=origin/main --head=HEAD
To date, all of our apps are nodejs using jest with the following
jest.config.ts
file:However, now that I've introduced a dotnet app, the command fails with
Unknown switch
due to the--ci
and--code-coverage
Does anyone have any advice on what to change to get this working? I'm hoping to avoid having to have separate commands for
test
andtest-with-coverage
?Beta Was this translation helpful? Give feedback.
All reactions