mcollina / borp

node:test runner wrapper with TypeScript support
MIT License
158 stars 15 forks source link

fix: windows reporter reference #104

Closed dancastillo closed 3 weeks ago

dancastillo commented 3 weeks ago

This should fix windows test running reference to relative reporters in fastify ref, for larger PR chore: setup borp reporter for switch to node test

Was getting this error when trying to load file ref here

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:249:11)
    at defaultLoad (node:internal/modules/esm/load:130:3)
    at ModuleLoader.load (node:internal/modules/esm/loader:555:13)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:434:56)
    at new ModuleJob (node:internal/modules/esm/module_job:71:27)
    at #createModuleJob (node:internal/modules/esm/loader:447:17)
    at ModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:259:34)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:17)
    at async ModuleLoader.import (node:internal/modules/esm/loader:472:[23](https://github.com/dancastillo/fastify/actions/runs/11262596416/job/31318631268?pr=4#step:5:24)) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}