Am I correct in observing that body closures in `d...
# box-products
b
Am I correct in observing that body closures in
describe
blocks still execute even if I give it
skip=true
?
Copy code
describe( title: "This shouldn't run", skip: true, body: function() {
    breakSomething(); // this seems to run
} );
I have a given/when/then inside the describe, and if I move
breakSomething
inside
then
, that's the only place in the whole chain where it doesn't break something.
b
Pretty sure the descibe closures are executed to discover all the specs. The skip is obeyed later when actually running the specs
BeforeEach and afterEach functions should be used for any setup or teardown
@bockensm
b
Thanks, Brad. I will check this out on Monday. I suspected I may be going against the grain a bit.