Hello, Community! I have faced an issue. We are making unit-tests and integration tests for proxies. JS is in JS-resource files. When we export function to the test file locally and test them with jest using standard “module.exports” construction, tests run successfully. After we deploy JS-resource files to Edge, making call to proxy gives us error and points problems with ‘module’ object?
Error:
{ “fault”: { “faultstring”: “Execution of JS-TransformCompanyResponse failed with error: Javascript runtime error: "ReferenceError: "module" is not defined. (proxy.transform.utils.js:45)"”, “detail”: { “errorcode”: “steps.javascript.ScriptExecutionFailed” } } }
If there any options to make it in the best possible way? How to make Edge see ‘module.exports’ or maybe there is another appropriate way to do this? Would be extremely grateful!
,