Global `beforeEach` in jasmine?

jasmine, javascript, unit-testing

Solution

You can put it in your `spec_helper.js` file and it should work fine.

Problem

I'm using Jasmine to write tests. I have several test files, each file has a `beforeEach`, but they are exactly the same. How do I provide a global `beforeEach` for them?

Original source