Skip to content

v11.0.0

Compare
Choose a tag to compare
@kaimallea kaimallea released this 16 Jul 18:25
· 123 commits to master since this release

11.0.0 (2021-07-16)

Features

  • add support for Husky v6+ (934ee73)

HEADS UP

  • upgrade prettier from 2.2.x to 2.3.x

  • ⚠️ jest v27: if you have tests using fake timers that break, jest.useFakeTimers('legacy') might be the mitigation (See jestjs/jest#11521 for more deets)

  • ⚠️ jest v27: default test environment was changed from "jsdom" to "node" for performance. if you are affected by this change because you use DOM APIs and do not have the test environment explicitly configured, you should be receiving an error when e.g. document is accessed, and you can configure "testEnvironment": "jsdom" or use per-file environment configuration to resolve this.

BREAKING CHANGES

  • upgrade Jest from v26.x to v27.x

    TL;DR --

    • tests using fake timers might break due to a regression
    • default test environment was changed from "jsdom" to "node" for performance
    • The same done test callback may not be called more than once,
    • calling done and returning a Promise may not be combined,
    • a describe block must not return anything,
    • under the hood the test runner jest-jasmine2 was replaced with jest-circus

    For more breaking changes see: https://jestjs.io/blog/2021/05/25/jest-27