|
- Jest · Delightful JavaScript Testing
Jest is a JavaScript testing framework designed to ensure correctness of any JavaScript codebase It allows you to write tests with an approachable, familiar and feature-rich API that gives you results quickly
- Getting Started - Jest
There are two ways to have Jest global APIs typed for test files written in TypeScript You can use type definitions which ships with Jest and will update each time you update Jest
- Jest 30: Faster, Leaner, Better · Jest - jestjs. io
Today we are happy to announce the release of Jest 30 This release features a substantial number of changes, fixes, and improvements While it is one of the largest major releases of Jest ever, we admit that three years for a major release is too long
- Testing Web Frameworks · Jest
Jest is a universal testing platform, with the ability to adapt to any JavaScript library or framework In this section, we'd like to link to community posts and articles about integrating Jest into popular JS libraries
- Configuring Jest · Jest
Jest has default serializers for built-in JavaScript types, HTML elements (Jest 20 0 0+), ImmutableJS (Jest 20 0 0+) and for React elements See snapshot test tutorial for more information
- Globals - Jest
In your test files, Jest puts each of these methods and objects into the global environment You don't have to require or import anything to use them However, if you prefer explicit imports, you can do import {describe, expect, test} from '@jest globals'
- Testing React Apps · Jest
See React: Function and Class Components Reminders that with Class components, we expect Jest to be used to test props and not methods directly Now let's use React's test renderer and Jest's snapshot feature to interact with the component and capture the rendered output and create a snapshot file:
- The Jest Object · Jest - jestjs. io
The jest object is automatically in scope within every test file The methods in the jest object help create mocks and let you control Jest's overall behavior It can also be imported explicitly by via import from '@jest globals'
|
|
|