I'd like to use ES Modules in the openHAB Scripting Bridge.
Modern tools like vitest only allow mocking of ES Modules and don't support CommonJS require imports. Therefore it's currently pretty cumbersome to write unit tests with these tools for openHAB scripts.
I'd like to use ES Modules in the openHAB Scripting Bridge.
Modern tools like vitest only allow mocking of ES Modules and don't support CommonJS
require
imports. Therefore it's currently pretty cumbersome to write unit tests with these tools for openHAB scripts.