hubotio / hubot

A customizable life embetterment robot.
https://hubotio.github.io/hubot/
MIT License
16.66k stars 3.75k forks source link

Periodic unit test failure on Windows related to loading an adapter by file name #1639

Closed joeyguerra closed 1 year ago

joeyguerra commented 1 year ago

Periodically, the robot_test.js unit test should load an ES6 module adapter from a file fails on the Windows container in the build pipeline with:

{"level":50,"time":1686410914463,"pid":984,"hostname":"fv-az319-484","name":"TestHubot","msg":"Cannot load adapter ./test/fixtures/MockAdapter.mjs MockAdapter - Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file and data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'd:'"}

nuxt had the same issue.