Javascript JsTestDriver Jasmine & Jasmine-jquery

前端 未结 3 767
日久生厌
日久生厌 2021-02-06 14:25

I have lots of Jasmine unit tests, that are running unit tests for Javascripts code. They are using Jasmine-jquery plugin to do DOM manipulation. they use loadFixture, to load f

3条回答
  •  广开言路
    2021-02-06 15:08

    Just to clarify a bit the previous posting.

    If in your jsTestDriver config file you have:

    serve:

    spec/fixtures/*_fixture.html
    

    Then, you need to override your test suite with

    jasmine.getFixtures().fixturesPath = '/test/spec/fixtures';
    

    Which is basically /test/ + whatever path you declare in the serve section in your jsTestDriver config file.

提交回复
热议问题