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

Minor Bug Report: Syntax Error When Running Jest Current File #1433

Open
humuhimi opened this issue Nov 25, 2024 · 0 comments
Open

Minor Bug Report: Syntax Error When Running Jest Current File #1433

humuhimi opened this issue Nov 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@humuhimi
Copy link

Bug Severity: 2 - Minor

Describe the Bug

When attempting to run Jest Current File, an error occurs related to a syntax error, causing the test to fail.


To Reproduce

Steps to reproduce the behavior:

  1. Configure launch.json to run Jest Current File.
  2. Attempt to execute the test file.
  3. Observe the error message related to missing syntax, such as a missing parenthesis.
  4. The test fails due to this error.

Observed Behaviour

An error message indicating a syntax issue appears when running Jest, preventing the test from completing successfully.


Expected Behaviour

The test should run without syntax errors and execute successfully.


Details

Error message:

/path/to/project/node_modules/.bin/jest:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list

Additional Context

Adjusting the launch.json by adding "runtimeExecutable": "/bin/bash" allows Jest to execute, but the test still fails due to an unexpected token error.


Versions

  • Veramo: Latest version
  • Node Version: v20.10.0 and v18.20.4 (error occurs in both versions also mac and wsl2)

Willingness to Assist

If there is anything I can do to assist in resolving this issue, I am happy to help. Please let me know how I can contribute.

@humuhimi humuhimi added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant