Lazy variables with mocha.js
Sergii Stotskyi

Can you explain about how to use sharedExamplesFor and includeExamplesFor in my project? The way my co-worker got those into our project was with `require ‘expose?global!bdd-lazy-var/spec/config’` in our specs, but I’m wondering if there’s a more straightforward way. It looks like those are, currently, functions that are only used in the specs, and not available as part of the ‘lib’ of bdd-lazy-var, which is odd since you explain them here. At the end you say “Unfortunately this feature is also not available in the library and probably should be delivered as separate package.”… so how about adding releasing that as a packge :-)

Like what you read? Give Tyler Collier a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.