jest-file-exists
Advanced tools
Changelog
jest 19.0.0
mocksPattern
configuration option, it never worked correctly.testPathDirs
to roots
to avoid confusion when configuring Jest.babel-plugin-jest-hoist
to work properly with type annotations in tests.toMatchObject
.--bail
behavior.babel-jest
plugin: babel is loaded lazily, istanbul comments are only added when coverage is used.--collectCoverageFrom
cli argument.--coverageDirectory
cli argument.expect.addSnapshotSerializer
to add custom snapshot serializers for tests.jest.spyOn
.testMatch
configuration option that accepts glob patterns.__mocks__/react-native/Library/Text.js
will now work as expected.--notify
.Changelog
jest 17.0.0
expect.extend
.--expand
(or -e
) to show the full diff.scriptPreprocessor
with the new transform
option.jest.resetAllMocks
which replaces jest.clearAllMocks
.jest-environment-node
..babelrc
is now part of the transform cache key in babel-jest
.jest-haste-map
.--json
now includes information about individual tests inside a file.Changelog
jest 15.0.0
.spec.js
and .test.js
as test files.--env
option to override the default test environment.--watchAll
, made --watch
interactive and added the ability to update snapshots and select test patterns in watch mode.testEnvironment
resolution to prefer jest-environment-{name}
instead of {name}
only. This prevents a module collision when using jsdom
as test environment.moduleNameMapper
now uses a resolution algorithm.global.global
to the node environment.mock
.collectCoverageFrom
to collect code coverage from untested files.