Skip to content

npm run test command is not compatible with all env #394

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

Open
gaurav-chaurasia opened this issue Mar 8, 2025 · 1 comment · May be fixed by #438
Open

npm run test command is not compatible with all env #394

gaurav-chaurasia opened this issue Mar 8, 2025 · 1 comment · May be fixed by #438
Labels
component:js sdk Issue/PR related to JavaScript SDK p3 status:triaged Issue/PR triaged to the corresponding sub-team type:feature request New feature request/enhancement

Comments

@gaurav-chaurasia
Copy link

gaurav-chaurasia commented Mar 8, 2025

Description of the bug:

npm run test command in package.json is only compatible in linux/unix environment and fails when run on windows system

it runs npm run lint && npm run test:node:unit which fails on windows system

Actual vs expected behavior:

npm run test should run tests successfully on all platforms. but currently it only works on the Linux\Unix based systems and fails in the windows system

@namrah77
Copy link

namrah77 commented Mar 9, 2025

A cross-platform solution is to use [npm-run-all] or [cross-env].
Install the dependencies and update your package.json file.
For npm-run-all

"scripts": {
  "test": "npm-run-all lint test:node:unit"
}

For cross-env

"scripts": {
"test": "cross-env npm run lint && npm run test:node:unit"
}

@hkt74 hkt74 added type:feature request New feature request/enhancement component:js sdk Issue/PR related to JavaScript SDK labels Mar 12, 2025
@amirh amirh added status:triaged Issue/PR triaged to the corresponding sub-team p3 labels Mar 19, 2025
@andyc2513 andyc2513 linked a pull request Mar 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:js sdk Issue/PR related to JavaScript SDK p3 status:triaged Issue/PR triaged to the corresponding sub-team type:feature request New feature request/enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants