Credo che tu lo chiami una volta nel primo prima che verrà eseguito una volta per ogni descrizione che è al di sotto di esso.
Nel codice seguente, Des2Var verrà impostato una volta per l'intero test1 Descrivere.
describe('des1', function() {
var des1Var = function () { };
beforeEach(function () {
var des2Var = des1Var();
});
describe('test1', function() {
it('should do ', function(){
//should do...
});
it('should also do', function(){
//should also do...
});
});
});