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

doc: Fix Script with 'process,' 'path,' and 'run' Requires #49490

Closed
wants to merge 1 commit into from

Conversation

OshriAsulin
Copy link
Contributor

This commit enhances the script by addressing missing imports for the 'run' function and the 'path' module, which previously resulted in script failure. The following improvements have been made:

  • Imported 'run' from the appropriate module via require to ensure correct functionality.
  • Imported 'path' via require to facilitate proper file path resolution.
  • Imported 'process' via require to include this essential module.

These changes resolve the issue of missing dependencies execution.

This pr is a continuation of pr #49489

This commit enhances the script by addressing missing imports for the 'run' function and the 'path' module, which previously resulted in script failure. The following improvements have been made:

- Imported 'run' from the appropriate module via require to ensure correct functionality.
- Imported 'path' via require to facilitate proper file path resolution.
- Imported 'process' via require to include this essential module.


These changes resolve the issue of missing dependencies execution.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. test_runner Issues and PRs related to the test runner subsystem. labels Sep 4, 2023
@MoLow
Copy link
Member

MoLow commented Sep 4, 2023

Can you please unify the two PR's?

@OshriAsulin
Copy link
Contributor Author

Yes, and I need to create a new pull request after I have connected both branches together locally and pushed the unified branch to GitHub, right? @MoLow

@benjamingr
Copy link
Member

process is actually globally available so I'm not sure why we'd require it?

@aduh95
Copy link
Contributor

aduh95 commented Sep 4, 2023

Yes, and I need to create a new pull request after I have connected both branches together locally and pushed the unified branch to GitHub, right? @MoLow

You don't need to create a third PR, and it would actually be better if you didn't. My suggestion would be to edit the file at https://github.com/OshriAsulin/node/edit/patch-1/doc/api/test.md?pr=%2Fnodejs%2Fnode%2Fpull%2F49489 to include the changes on the script, and then to close this PR.

@OshriAsulin OshriAsulin closed this Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. test_runner Issues and PRs related to the test runner subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants