Karma error when running angular2 tests via jenkins on linux

前端 未结 2 993
陌清茗
陌清茗 2021-01-05 08:34

I am seeing the following error when running my angular2 unit tests using karma with jenkins.

My tests run fine when I run them on my local machine (windows), howeve

2条回答
  •  轮回少年
    2021-01-05 09:25

    To answer my own question on this.

    Turns out the problem was with my karma files section.

      { pattern: 'node_modules/rxjs/bundles/rx.js', included: true, watched: true }
    

    The filename for the rx module is node_modules/rxjs/bundles/Rx.js

    With linux being case sensitive this is the reason it worked on a windows dev environment and failed on the linux build server.

    The 404 message for the rx.js file was present in the logs but I missed among a lot of other debug logging.

    Lesson learned :)

提交回复
热议问题