Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(node): add e2e project generator #14429

Merged
merged 1 commit into from
Jan 17, 2023
Merged

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Jan 17, 2023

This PR adds a @nrwl/node:e2e-project generator to configure a server or CLI test suite for Node apps.

Also adds --e2eTestRunner for @nrwl/node:app generator, which generates tests by default.

Users can generate a new app nx g @nrwl/node:app api --framework=fastify and then run:

nx serve api
nx e2e api-e2e

Both the app and e2e tests use PORT environment variable, so it can be set to anything. There is are global setup and teardown files to run databases, docker, etc.

TODO

  • add e2e tests
  • add lint target for e2e project

@vercel
Copy link

vercel bot commented Jan 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 17, 2023 at 8:09PM (UTC)

@jaysoo jaysoo force-pushed the feat/node-e2e-tests branch 6 times, most recently from 980a2cc to 0a06d04 Compare January 17, 2023 18:07
@jaysoo jaysoo marked this pull request as ready for review January 17, 2023 18:08
@jaysoo jaysoo force-pushed the feat/node-e2e-tests branch 2 times, most recently from a824611 to 959185f Compare January 17, 2023 18:13
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants