Open-Cap-Table-Coalition / Open-Cap-Format-OCF

Open Cap Format (OCF) - The Open Source Company Capitalization Data Standard. OCF can be used to structure and track the complex data structures necessary to build and maintain accurate capitalization (cap) tables.
https://opencaptablecoalition.com
Other
143 stars 30 forks source link

[Bug]: Test Suite Doesn't Run in Windows #517

Open JSv4 opened 1 month ago

JSv4 commented 1 month ago

Current Behavior:

I've been using Ubuntu until recently to develop with no issues. I tried to run the test suite on Windows 11 Pro, however, and got an error.

Expected Behavior:

Test suite should run

Steps to Reproduce:

  1. Use node version specified in .nvmrc
  2. npm intstall
  3. npm run test
  4. You should see something like this:
PS C:\Users\scrud\source\Open-Cap-Format-OCF> npm run test                                                                                                            

> test
> node --experimental-vm-modules --experimental-json-modules --no-warnings node_modules/.bin/jest

C:\Users\scrud\source\Open-Cap-Format-OCF\node_modules\.bin\jest:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1176:20)
    at Module._compile (node:internal/modules/cjs/loader:1218:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

Node.js v18.16.0

Environment:

Anything else we need to know?

Nope