Global `beforeEach` in jasmine?

前端 未结 2 760
再見小時候
再見小時候 2021-02-03 17:15

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

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-03 18:04

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

提交回复
热议问题