babel-jest
Advanced tools
Changelog
jest-cli 12.0.2
Changelog
jest-cli 12.0.0
node-haste
as jest-haste-map
: https://github.com/facebook/jest/pull/896Object.create(null)
.--silent
flag to silence console messages during a test run.module.paths
.Changelog
jest-cli 11.0.2
jest -o
error when Mercurial isn't installed on the systemChangelog
jest-cli 11.0.1, babel-jest 11.0.1
jest -o
mockImplementationOnce
API to jest.fn()
.Changelog
jest-cli 11.0.0, babel-jest 11.0.0 (pre-releases 0.9 to 0.10)
testRunner: "jasmine1"
into your configuration.jest-util
, jest-mock
, jest-jasmine1
, jest-jasmine2
, jest-environment-node
, jest-environment-jsdom
packages.babel-jest-preset
and babel-jest
as packages. babel-jest
is now being auto-detected.babel-plugin-jest-hoist
which hoists jest.unmock
, jest.mock
and the new jest.enableAutomock
and jest.disableAutomock
API.babel-jest
integration and react-native
testing.babel-jest
.jest.mock('moduleName', moduleFactory)
feature. jest.mock
now gets hoisted by default. jest.doMock
was added to explicitly mock a module without the hoisting feature of babel-jest
.--watch
.--watch
.--watch
will now only runs tests related to changed files. --watch=all
can be used to run all tests on file system changes.--watch
re-runs to not trigger test runs during a branch switch in version control.jest.fn()
and jest.fn(implementation)
as convenient shortcuts for jest.genMockFunction()
and jest.genMockFunction().mockImplementation()
.automock
option to turn off automocking globally.process.NODE_ENV
to test
unless otherwise specified.moduleNameMapper
config option when used with paths.throw 'string errors'
.--onlyChanged
option.toBeCalled
Jasmine 2 custom matcher messages.xit
and xdescribe
.preprocessCachingDisabled
config option.testEnvironment
option to customize the sandbox environment.@scoped/name
npm packages.Changelog
29.0.3
[@jest/environment, jest-runtime]
Allow passing a generic type argument to jest.createMockFromModule<T>()
method (#13202)[expect]
Expose ExpectationResult
type (#13240)[jest-snapshot]
Expose Context
type (#13240)[@jest/globals]
Add jest.Mock
type helper (#13235)[jest-core]
Capture execError
during TestScheduler.scheduleTests
and dispatch to reporters (#13203)[jest-resolve]
Make sure to resolve module paths after looking at exports
(#13242)[jest-resolve]
Improve error on module not found deep in the require
stack (#8704)[jest-snapshot]
Fix typings of snapshot matchers (#13240)