EvHaus / test-runner-benchmarks

A repository to measure performance of various JavaScript test runners
72 stars 13 forks source link

ERR_UNKNOWN_FILE_EXTENSION when running jasmine tests #455

Closed cdavie-artium closed 1 year ago

cdavie-artium commented 1 year ago

Repro Steps

  1. git clone https://github.com/EvHaus/test-runner-benchmarks.git
  2. cd test-runner-benchmarks
  3. yarn install
  4. yarn workspace jasmine test

Expected

Tests run successfully.

Actual

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for C:\repos\test-runner-benchmarks\node_modules\.bin\jasmine
    at new NodeError (node:internal/errors:406:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:99:9)
    at defaultGetFormat (node:internal/modules/esm/get_format:142:36)
    at defaultLoad (node:internal/modules/esm/load:120:20)
    at nextLoad (node:internal/modules/esm/hooks:833:28)
    at load (C:\repos\test-runner-benchmarks\node_modules\ts-node\dist\child\child-loader.js:19:122)
    at nextLoad (node:internal/modules/esm/hooks:833:28)
    at Hooks.load (node:internal/modules/esm/hooks:416:26)
    at MessagePort.handleMessage (node:internal/modules/esm/worker:168:24)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}

Environment

EvHaus commented 1 year ago

Thanks for the report @cdavie-artium. Unfortunately this benchmark doesn't support Windows environments and it's not something I'm planning on adding support for.

You should be able to run it via Windows WSL though!

cdavie-artium commented 12 months ago

@EvHaus Bummer, but also I understand. (Work priorities have shifted, so I probably won't end up trying WSL, but good to know for the future!)

Perhaps the README could mention which platforms the benchmark does intend to support? (Linux and/or Mac?)

EvHaus commented 12 months ago

Sounds good. Will add to README