decentralized-identity / veramo

A JavaScript Framework for Verifiable Data
https://veramo.io
Apache License 2.0
443 stars 133 forks source link

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

Open humuhimi opened 6 hours ago

humuhimi commented 6 hours ago

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


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.