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(nx-plugin): update e2e tests to use local-registry and be simpler #17639

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

FrozenPandaz
Copy link
Collaborator

Current Behavior

e2e tests use special utils from @nx/plugin which obfuscate what the tests do

Expected Behavior

e2e tests Node APIs which allow users to easily determine what's going on

Related Issue(s)

Fixes #

@FrozenPandaz FrozenPandaz requested a review from a team as a code owner June 16, 2023 15:37
@FrozenPandaz FrozenPandaz requested a review from AgentEnder June 16, 2023 15:37
@vercel
Copy link

vercel bot commented Jun 16, 2023

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

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2023 8:44pm

@nx-cloud
Copy link

nx-cloud bot commented Jun 16, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit ecff9ec. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@@ -26,4 +22,7 @@ packages:
logs:
type: stdout
format: pretty
level: http
level: warn
Copy link
Collaborator Author

@FrozenPandaz FrozenPandaz Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xiongemi I could not get these tests to work unless I brought this down to warn... Do you have any idea why?

{
cwd: dirname(projectDirectory),
stdio: 'inherit',
env: process.env,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: The default is process.env, so it's not necessary unless we're adding more values to it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me try without it in another PR.

I know it shouldn't make any difference... but somehow it does sometimes?

host,
options.pluginName
);
const { name: pluginPackageName } = readJson(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we care if pluginPackageName is undefined? It is required in package.json so we could it's always there, otherwise it's a user error. We can also validate it and error out if it's missing somehow.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add this in a follow up.

@jaysoo
Copy link
Member

jaysoo commented Jun 21, 2023

Left some comments, LGTM overall

@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 Jun 27, 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.

3 participants