I just started moving some of my apps' modules into Architect, and I'm wondering if you have any tips about unit testing architect-controlled modules. Some logic can be exposed by setting module.exports.method = ... outside of the setup function, but what about modules that require registration before use?
I just started moving some of my apps' modules into Architect, and I'm wondering if you have any tips about unit testing architect-controlled modules. Some logic can be exposed by setting
module.exports.method = ...
outside of the setup function, but what about modules that require registration before use?I'm using Mocha for tests currently.