Sourced from babel-jest's releases.
v29.1.2
Fixes
[expect, jest/expect]Revert buggy inference of argument types for*CalledWithand*ReturnedWithmatchers introduced in 29.1.0 (#13339)[jest-worker]Add missing dependency onjest-util(#13341)New Contributors
@brunocabral88made their first contribution in facebook/jest#13329@alexander-akaitmade their first contribution in facebook/jest#13341Full Changelog: https://github.com/facebook/jest/compare/v29.1.1...v29.1.2
v29.1.1
Fixes
[jest-mock]Revert #13145 which broke mocking of transpiled ES modulesFull Changelog: https://github.com/facebook/jest/compare/v29.1.0...v29.1.1
v29.1.0
Features
[expect, jest/expect]support type inference for function parameters inCalledWithassertions (#13268)[expect, jest/expect]Infer type of*ReturnedWithmatchers argument (#13278)[jest/environment, jest-runtime]Allowjest.requireActualandjest.requireMockto take a type argument (#13253)[jest/environment]Allowjest.mockandjest.doMockto take a type argument (#13254)[jest/fake-timers]Addjest.now()to return the current fake clock time (#13244, #13246)[jest/mock]AddwithImplementationmethod for temporarily overriding a mock (#13281)[expect]ExporttoThrow*matchers (#13328)Fixes
[jest-circus, jest-jasmine2]Fix error messages for Node'sassert.throes(#13322)[jest-haste-map]Remove__proto__usage (#13256)[jest-mock]ImprovespyOntypings to handle optional properties (#13247)[jest-mock]Fix mocking of getters and setters on classes (#13145)[jest-snapshot]Throw useful error when an array is passed as property matchers (#13263)[jest-snapshot]Prioritize parser used in the project (#13323)[jest-transform]Attempt to work around issues with atomic writes on Windows (#11423)New Contributors
@fzn0xmade their first contribution in facebook/jest#13234@guimardmade their first contribution in facebook/jest#13256@weidehaimade their first contribution in facebook/jest#13270@kettanaitomade their first contribution in facebook/jest#12871@royhadadmade their first contribution in facebook/jest#13279@ghiscodingmade their first contribution in facebook/jest#13290@paulreecemade their first contribution in facebook/jest#13311@jeppestermade their first contribution in facebook/jest#13281@sashashuramade their first contribution in facebook/jest#13324
... (truncated)
Sourced from babel-jest's changelog.
29.1.2
Fixes
[expect, jest/expect]Revert buggy inference of argument types for*CalledWithand*ReturnedWithmatchers introduced in 29.1.0 (#13339)[jest-worker]Add missing dependency onjest-util(#13341)29.1.1
Fixes
[jest-mock]Revert #13145 which broke mocking of transpiled ES modules29.1.0
Features
[expect, jest/expect]Support type inference for function parameters inCalledWithassertions (#13268)[expect, jest/expect]Infer type of*ReturnedWithmatchers argument (#13278)[jest/environment, jest-runtime]Allowjest.requireActualandjest.requireMockto take a type argument (#13253)[jest/environment]Allowjest.mockandjest.doMockto take a type argument (#13254)[jest/fake-timers]Addjest.now()to return the current fake clock time (#13244, #13246)[jest/mock]AddwithImplementationmethod for temporarily overriding a mock (#13281)[expect]ExporttoThrow*matchers (#13328)Fixes
[jest-circus, jest-jasmine2]Fix error messages for Node'sassert.throes(#13322)[jest-haste-map]Remove__proto__usage (#13256)[jest-mock]ImprovespyOntypings to handle optional properties (#13247)[jest-mock]Fix mocking of getters and setters on classes (#13145)[jest-snapshot]Throw useful error when an array is passed as property matchers (#13263)[jest-snapshot]Prioritize parser used in the project (#13323)[jest-transform]Attempt to work around issues with atomic writes on Windows (#11423)29.0.3
Features
[jest/environment, jest-runtime]Allow passing a generic type argument tojest.createMockFromModule<T>()method (#13202)[expect]ExposeExpectationResulttype (#13240)[jest-snapshot]ExposeContexttype (#13240)[jest/globals]Addjest.Mocktype helper (#13235)Fixes
[jest-core]CaptureexecErrorduringTestScheduler.scheduleTestsand dispatch to reporters (#13203)[jest-resolve]Make sure to resolve module paths after looking atexports(#13242)[jest-resolve]Improve error on module not found deep in therequirestack (#8704)[jest-snapshot]Fix typings of snapshot matchers (#13240)
... (truncated)