Search code examples
node.jstestingcontinuous-integrationjasmine-nodecircleci

CircleCI : $ npm test failing


I'm trying to use CircleCI for one of my node.js application. I'm trying to learn the way circleci works.

My app and test cases are running fine locally. I'm using jasmine-node for test.

But when I'm trying to build my app on circleci I'm getting below error. Below is a screenshot from circleci: enter image description here

Please let me know anyone has any idea on this!


Solution

  • CircleCi is saying that jasmine-node isn't installed.

    Add the following code to your circle.yml file.

    dependencies:
      post:
        - sudo npm install jasmine-node -g