github SonarSource/SonarJS 8.5.0.16762
8.5.0

latest releases: 10.15.0.27423, 10.14.0.26080, 10.13.2.25981...
2 years ago

This release contains 8 new rules covering common pitfalls when writing JS unit tests

  • S2699 Tests should include assertions
  • S2970 Assertions should be complete
  • S3415 Assertion arguments should be passed in the correct order
  • S5863 Assertions should not be given twice the same argument
  • S5958 Tests should check which exception is thrown
  • S6079 Tests should not execute any code after "done()" is called
  • S6080 Mocha timeout should be disabled by setting it to "0".
  • S6092 Chai assertions should have only one reason to succeed

We now also support TypeScript 4.4

As usual, we also include minor improvements and bugfixes.
Full list of fixed issues: https://github.com/SonarSource/SonarJS/milestone/45?closed=1

Don't miss a new SonarJS release

NewReleases is sending notifications on new releases.