hubotio / hubot

A customizable life embetterment robot.

Home Page:https://hubotio.github.io/hubot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

joeyguerra opened this issue · comments

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.