Skip to content

8.5.0

Compare
Choose a tag to compare
@saberduck saberduck released this 01 Nov 09:42
· 1294 commits to master since this release
c558025

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