jest-haste-map
Advanced tools
Changelog
jest-cli 11.0.2
jest -o
error when Mercurial isn't installed on the systemChangelog
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
jest 20.0.0
--projects
option to run one instance of Jest in multiple projects at the same time. (#3400)expect
matchers through .resolves
and .rejects
. (#3068)expect.hasAssertions()
function similar to expect.assertions()
. (#3379)this.equals
function exposed to custom matchers. (#3469)valid-expect
lint rule in eslint-plugin-jest
. (#3067)@jest-environment
in the docblock. (#2859)reporters
in the configuration. (#3349)jest-editor-support
into a separate jest-test-typescript-parser
package. (#2973)babel-jest
to look up the babel
field in package.json
as a fallback.jest-editor-support
's parser to not crash on incomplete ASTs. (#3259)jest-resolve
to use is-builtin-module
instead of resolve.isCore
. (#2997)jest-snapshot
to normalize line endings in the serialize
function. (#3002)--silent
flag. (#3003)notify
option not taking precedence over config option. (#3340)jest-editor-support
. (#3344)undefined
. (#3354)expect
. (#3306)expect.assertions
error. (#3033)jest-file-exists
. (#3105)Config
type. (#3366)jest-file-exists
. (#3101)