Releases: SimenB/jest
Releases Β· SimenB/jest
15.0.0
- See https://jestjs.io/blog/2016/09/01/jest-15.html
- Jest by default now also recognizes files ending in
.spec.js
and.test.js
as test files. - Completely replaced most Jasmine matchers with new Jest matchers.
- Rewrote Jest's CLI output for test failures and summaries.
- Added
--env
option to override the default test environment. - Disabled automocking, fake timers and resetting the module registry by default.
- Added
--watchAll
, made--watch
interactive and added the ability to update snapshots and select test patterns in watch mode. - Jest uses verbose mode when running a single test file.
- Console messages are now buffered and printed along with the test results.
- Fix
testEnvironment
resolution to preferjest-environment-{name}
instead of{name}
only. This prevents a module colision when usingjsdom
as test environment. moduleNameMapper
now uses a resolution algorithm.- Improved performance for small test runs.
- Improved API documentation.
- Jest now works properly with directories that have special characters in them.
- Improvements to Jest's own test infra by merging integration and unit tests. Code coverage is now collected for Jest.
- Added
global.global
to the node environment. - Fixed babel-jest-plugin-hoist issues with functions called
mock
. - Improved jest-react-native preset with mocks for ListView, TextInput, ActivityIndicator and ScrollView.
- Added
collectCoverageFrom
to collect code coverage from untested files. - Rewritten code coverage support.
14.1.0
14.0.2
14.0.1
14.0.0
- Official release of snapshot tests.
- Started to replace Jasmine matchers with Jest matchers:
toBe
,toBeFalsy
,toBeTruthy
,toBeNaN
,toBe{Greater,Less}Than{,OrEqual}
,toBeNull
,toBeDefined
,toBeUndefined
,toContain
,toMatch
,toBeCloseTo
were rewritten. - Rewrite of Jest's reporters.
- Experimental react-native support.
- Removed Jasmine 1 support from Jest.
- Transform caching improvements.
13.2.0
13.1.0
- Added
test
global function as an alias forit
. - Added
coveragePathIgnorePatterns
to the config. - Fixed printing of "JSX objects" in snapshots.
- Fixes for
--verbose
option and top levelit
calls. - Extended the node environment with more globals.
- testcheck now needs to be required explicitly through
require('jest-check')
. - Added
jest.deepUnmock
. - Fail test suite if it does not contain any tests.
13.0.0
- Added duration of individual tests in verbose mode.
- Added a
browser
config option to properly resolve npm packages with a browser field inpackage.json
if you are writing tests for client side apps - Added
jest-repl
. - Split up
jest-cli
intojest-runtime
andjest-config
. - Added a notification plugin that shows a test run notification using
--notify
. - Refactored
TestRunner
intoSearchSource
and improved the "no tests found" message. - Added
jest.isMockFunction(jest.fn())
to test for mock functions. - Improved test reporter printing and added a test failure summary when running many tests.
- Add support for property testing via testcheck-js.
- Added a webpack tutorial.
- Added support for virtual mocks through
jest.mock('Module', implementation, {virtual: true})
. - Added snapshot functionality through
toMatchSnapshot()
. - Redesigned website.
12.1.1
12.1.0
- Jest is now also published in the
jest
package on npm. - Added
testRegex
to match for tests outside of specific folders. Deprecated bothtestDirectoryName
andtestFileExtensions
. it
can now return a Promise for async testing.pit
was deprecated.- Added
jest-resolve
as a standalone package based on the Facebook module resolution algorithm. - Added
jest-changed-files
as a standalone package to detect changed files in a git or hg repo. - Added
--setupTestFrameworkFile
to cli. - Added support for coverage thresholds. See https://jestjs.io/docs/en/configuration#coveragethreshold-object.
- Updated to jsdom 9.0.
- Updated and improved stack trace reporting.
- Added
module.filename
and removed the invalidmodule.__filename
field. - Further improved the
lastCalledWith
andtoBeCalledWith
custom matchers. They now print the most recent calls. - Fixed jest-haste-map on continuous integration systems.
- Fixes for hg/git integration.
- Added a re-try for the watchman crawler.