jest-mock
Advanced tools
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.Changelog
jest 14.0.0
toBe
, toBeFalsy
, toBeTruthy
, toBeNaN
, toBe{Greater,Less}Than{,OrEqual}
, toBeNull
, toBeDefined
, toBeUndefined
, toContain
, toMatch
, toBeCloseTo
were rewritten.