bolt icon indicating copy to clipboard operation
bolt copied to clipboard

Run testing outside the project

Open FrankChung opened this issue 8 years ago • 1 comments

Here is my bolt-testing.js:

var bolt = require('firebase-bolt'); var rulesSuite = bolt.rulesSuite

when I run mocha bolt-testing.js --ui tdd I will get this error

TypeError: rulesSuite is not a function

It seems that rulesSuite is not exported in bolt.js, how can I import rulesSuite?

Thanks

FrankChung avatar Aug 15 '16 06:08 FrankChung

That looks like the way I recommended using it - perhaps I accidentally removed the export at some point.

As a work around you could try:

var simulator = require('firebase-bolt/simulator');
var rulesSuite = simulator.rulesSuite;

mckoss avatar Aug 19 '16 14:08 mckoss