unit-testingkarma-jasmineangular7

configure jasmine to not run tests randomly


i just upgraded to jasmine 3.3 and now my tests by default run in random order. Is there a way to configure karma and jasmine to make tests run like they used to before upgrading to this new version?


Solution

  • In Karma config under client: you are supposed to be able to set jasmine:{random:false} but that does not work for me. Does it for you? See below link from docs and screen cap. https://github.com/karma-runner/karma-jasmine

    enter image description here