BlanketJS + Jasmine 2.0 not working

前端 未结 2 1418
春和景丽
春和景丽 2021-02-08 11:40

I have been testing with Jasmine 2.0.0 and it works without any problem. But there\'s a problem when I append BlanketJS to my code.

I used a specRunner(https://github.c

2条回答
  •  情书的邮戳
    2021-02-08 12:08

    So now there is actually an adapter for 2.x version of jasmine. But I still had some trouble configuring it. Eventually I did configure everything right, so that is what I got:

    
    
    
        
        Tests
    
        
    
        
        
        
    
        
        
        
    
        
        
        
    
        
        
    
        
        
        
    
    
    
    
    

    Note: I used bower to retrieve jasmine and blanket, but there is some confusion towards what blanket files I had to reference, so:

    • "components/blanket.js" -> I got this file from dist/qunit/blanket.js

    • "components/blanket_browser.js" -> src/blanket_browser.js

    • "components/jasmine-2.x-blanket.js" -> src/adapters/jasmine-2.x-blanket.js

    Note that I also use boot.js that comes with jasmine and it works fine. Hope this information helps someone.

提交回复
热议问题