Skip to content

0.7.0

Compare
Choose a tag to compare
@SimenB SimenB released this 16 Aug 10:37
· 6536 commits to main since this release
  • Fixed a memory leak with test contexts. Jest now properly cleans up test environments after each test. Added --logHeapUsage to log memory usage after each test. Note: this is option is meant for debugging memory leaks and might significantly slow down your test run.
  • Removed mock-modules, node-haste and mocks virtual modules. This is a breaking change of undocumented public API. Usage of this API can safely be automatically updated through an automated codemod:
  • Example: http://astexplorer.net/#/zrybZ6UvRA
  • Codemod: https://github.com/cpojer/js-codemod/blob/master/transforms/jest-update.js
  • jscodeshift: https://github.com/facebook/jscodeshift
  • Removed navigator.onLine and mockSetReadOnlyProperty from the global jsdom environment. Use window.navigator.onLine = true; in your test setup and Object.defineProperty instead.