How can I have a beforeAll function in Jasmine ? (Not coffeeScript)

前端 未结 4 1984
半阙折子戏
半阙折子戏 2021-02-05 03:54

I need to know if there is a way to include or use a beforeAll function, or something similar, so I can login to my application and then start testing.

Right now I\'m pu

4条回答
  •  旧时难觅i
    2021-02-05 04:20

    This is now much easier. As of Jasmine 2.1 (released 14 Nov 2014), there is a beforeAll function built into the framework.

    Here are the release notes with everything that was added in 2.1. And here is the documentation explaining beforeAll and afterAll

提交回复
热议问题