diff-sequences
Advanced tools
Changelog
23.6.0
[jest-cli]
Add changedSince
to allowed watch mode configs (#6955)[babel-jest]
Add support for babel.config.js
added in Babel 7.0.0 (#6911)[jest-resolve]
Add support for an experimental mapper
option (Watchman crawler only) that adds virtual files to the Haste map (#6940)[jest-resolve]
Only resolve realpath once in try-catch (#6925)[expect]
Fix TypeError in toBeInstanceOf
on null
or undefined
(#6912)[jest-jasmine2]
Throw a descriptive error if the first argument supplied to a hook was not a function (#6917) and (#6931)[jest-circus]
Throw a descriptive error if the first argument supplied to a hook was not a function (#6917) and (#6931)[expect]
Fix variadic custom asymmetric matchers (#6898)[jest-cli]
Fix incorrect testEnvironmentOptions
warning (#6852)[jest-each]
Prevent done callback being supplied to describe (#6843)[jest-config]
Better error message for a case when a preset module was found, but no jest-preset.js
or jest-preset.json
at the root (#6863)[jest-haste-map]
Catch crawler error when unsuccessfully reading directories (#6761)[docs]
Add custom toMatchSnapshot matcher docs (#6837)[docs]
Improve the documentation regarding preset configuration (#6864)[docs]
Clarify usage of --projects
CLI option (#6872)[docs]
Correct failure-change
notification mode (#6878)[scripts]
Don’t remove node_modules from subdirectories of presets in e2e tests (#6948)[diff-sequences]
Double-check number of differences in tests (#6953)Changelog
23.2.0
[jest-each]
Add support for keyPaths in test titles (#6457)[jest-cli]
Add jest --init
option that generates a basic configuration file with a short description for each option (#6442)[jest.retryTimes]
Add jest.retryTimes()
option that allows failed tests to be retried n-times when using jest-circus. (#6498)[docs]
Fixed error in documentation for expect.not.arrayContaining(array). (#6491)[jest-cli]
Add check to make sure one or more tests have run before notifying when using --notify
(#6495)[jest-cli]
Pass globalConfig
as a parameter to globalSetup
and globalTeardown
functions (#6486)[jest-config]
Add missing options to the defaults
object (#6428)[expect]
Using symbolic property names in arrays no longer causes the toEqual
matcher to fail (#6391)[expect]
toEqual
no longer tries to compare non-enumerable symbolic properties, to be consistent with non-symbolic properties. (#6398)[jest-util]
console.timeEnd
now properly log elapsed time in milliseconds. (#6456)[jest-mock]
Fix MockNativeMethods
access in react-native jest.mock()
(#6505)[jest-cli]
Fix reporters
for moduleName
= 'default'
(#6542)[docs]
Add jest-each docs for 1 dimensional arrays (#6444)Changelog
jest 22.2.0
[jest-runner]
Move test summary to after coverage report (#4512)[jest-cli]
Added --notifyMode
to specify when to be notified. (#5125)[diff-sequences]
New package compares items in two sequences to find a longest common subsequence. (#5407)[jest-matcher-utils]
Add comment
option to matcherHint
function (#5437)[jest-config]
Allow lastComit and changedFilesWithAncestor via JSON config (#5476)[jest-util]
Add deletion to process.env
as well (#5466)[jest-util]
Add case-insensitive getters/setters to process.env
(#5465)[jest-mock]
Add util methods to create async functions. (#5318)[jest-cli]
Add trailing slash when checking root folder (#5464)[jest-cli]
Hide interactive mode if there are no failed snapshot tests (#5450)[babel-jest]
Remove retainLines from babel-jest (#5439)[jest-cli]
Glob patterns ignore non-require
-able files (e.g. README.md
) (#5199)[jest-mock]
Add backticks support (``) to mock
a certain package via the __mocks__
folder. (#5426)[jest-message-util]
Prevent an ENOENT
crash when the test file contained a malformed source-map. (#5405).[jest]
Add import-local
to jest
package. (#5353)[expect]
Support class instances in .toHaveProperty()
and .toMatchObject
matcher. (#5367)[jest-cli]
Fix npm update command for snapshot summary. (#5376, 5389)[expect]
Make rejects
and resolves
synchronously validate its argument. (#5364)[docs]
Add tutorial page for ES6 class mocks. (#5383)[jest-resolve]
Search required modules in node_modules and then in custom paths. (#5403)[jest-resolve]
Get builtin modules from node core. (#5411)[jest-resolve]
Detect and preserve absolute paths in moduleDirectories
. Do not generate additional (invalid) paths by prepending each ancestor of cwd
to the absolute path. Additionally, this fixes functionality in Windows OS. (#5398)[jest-util]
Implement watch plugins (#5399)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)