Closed robertIsaac closed 3 weeks ago
@AgentEnder We have an empty node + NestJS and experienced number 3 above as well.
The reason for the failure is because the @nx/jest/plugin
is creating a VIRTUAL test target on the e2e project.
2 possible solutions:
nx.json
{
"plugin": "@nx/jest/plugin",
"options": {
"targetName": "test"
}
}
Here is the output:
β > nx run gateway-e2e:test
Setting up...
FAIL gateway-e2e src/gateway/gateway.spec.ts
GET /api
β should return a message (39 ms)
β GET /api βΊ should return a message
AggregateError
at Function.Object.<anonymous>.AxiosError.from (../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/AxiosError.js:89:14)
at RedirectableRequest.handleRequestError (../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js:610:25)
at ClientRequest.eventHandlers.<computed> (../../node_modules/.pnpm/follow-redirects@1.15.5/node_modules/follow-redirects/index.js:38:24)
at Axios.request (../../node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/Axios.js:45:[41](https://github.com/safe-health/platform/actions/runs/8180154723/job/22367616715#step:8:46))
Cause:
AggregateError
This issue has been automatically marked as stale because it hasn't had any activity for 6 months. Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore. If at this point, this is still an issue, please respond with updated information. It will be closed in 21 days if no further activity occurs. Thanks for being a part of the Nx community! π
Current Behavior
right now when I create a new project using angular then add nest to do there are multiple problems
fatal: ambiguous argument 'origin/main': unknown revision or path not in the working tree.
that's because the branch that nx created ismaster
but the default branch innrwl/nx-set-shas
jon ismain
Executable doesn't exist at /home/runner/.cache/ms-playwright/chromium-1105/chrome-linux/chrome
nx run-many -t serve
doesn't work, only the first one actually is served and it's random sometimes it's Angular and some other it's nestExpected Behavior
main-branch-name
for master in the.github/workflows/ci.yml
file like what I did here https://github.com/robertIsaac/ng-nest-reprod/commit/527b40111c7ae18eb28857cc9abf91dc3e5ab4f5npx playwright install --with-deps
as I did in https://github.com/robertIsaac/ng-nest-reprod/commit/a8b02076652ab2e6717f6d189bd9785b5d79126e or to add it as an extra step in theci.yaml
fileGitHub Repo
https://github.com/robertIsaac/ng-nest-reprod
Steps to Reproduce
1.create a new project
npx create-nx-workspace ng-nest-reprod
then follow these stepsnx add @nx/nest
nx g @nx/nest:app be --frontendProject fe
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
these are 4 different issues related to multiple issues, if you want me to create separate issues for each or for one of them just tell me and I will do I'm also open to contribute to fix these issues, just let's agree how they should work and point me to where to go to fix them because I get lost easily in the repo