I am trying to implement CI at my project using Jenkins but I have an error at the Hyperledger Composer module that I do not know how to solve. My unit tests are written using Mocha and Chai.
Error:
ReferenceError: require is not defined
at _generator (eval at <anonymous> (eval at compile (node_modules/composer-runtime/lib/scriptcompiler.js:99:33)), <anonymous>:18:23)
at CompiledScriptBundle.execute (node_modules/composer-runtime/lib/compiledscriptbundle.js:53:29)
at Engine._executeTransaction (node_modules/composer-runtime/lib/engine.transactions.js:125:84)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
Does anybody knows how to solve this problem? Or, does anybody recommends another CI software who works better to test our hyperledger composer code?
Thank you in advance!