bolt
bolt copied to clipboard
Run testing outside the project
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
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;