Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Jun 9, 2024 via pnpm

@jest/types 29.6.3

This package contains shared types of Jest's packages.
Package summary
Share
0
issues
1
license
16
MIT
Package created
5 Mar 2019
Version published
21 Aug 2023
Maintainers
3
Total deps
16
Direct deps
6
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
16 Packages, Including:
@jest/schemas@29.6.3
@jest/types@29.6.3
@sinclair/typebox@0.27.8
@types/istanbul-lib-coverage@2.0.6
@types/istanbul-lib-report@3.0.3
@types/istanbul-reports@3.0.4
@types/node@20.14.2
@types/yargs-parser@21.0.3
@types/yargs@17.0.32
ansi-styles@4.3.0
chalk@4.1.2
color-convert@2.0.1
color-name@1.1.4
has-flag@4.0.0
supports-color@7.2.0
undici-types@5.26.5
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of @jest/types 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@jest/schemas29.6.31.94 kBMIT
prod
@types/istanbul-lib-coverage2.0.62.1 kBMIT
prod
@types/istanbul-reports3.0.42.12 kBMIT
prod
@types/node20.14.21.99 MBMIT
prod
@types/yargs17.0.3214.18 kBMIT
prod
chalk4.1.211.31 kBMIT
prod

Visualizations

Frequently Asked Questions

What does @jest/types do?

The @jest/types npm package provides shared types for Jest's packages. These shared types enhance the ease with which developers can use and navigate Jest. Integration of @jest/types promotes a structured and well-formatted scripting environment, enhancing the readability and functionality of your testing framework in JS projects.

How do you use @jest/types?

Using @jest/types in your JavaScript code requires importing the relevant components from the package. For instance, to import globals such as 'describe', 'expect', and 'it', you would execute the code:

import {describe, expect, it} from '@jest/globals';

describe('my tests', () => {
  it('works', () => {
    expect(1).toBe(1);
  });
});

Similarly, for a typed Jest config which isn't offered in Jest by default, you would import the Config module from @jest/types as demonstrated below:

// jest.config.ts
import {Config} from '@jest/types';

const config: Config.InitialOptions = {
  // some typed config
};

export default config;

These examples illustrate how seamlessly @jest/types integrates with your code, optimising Jest functionalities.

Where are the @jest/types docs?

The documentation for the @jest/types package is available in the official Jest documentation. Additionally, for third-party type definitions maintained by DefinitelyTyped, you can find information on the @types/jest package and its repository on GitHub. Always ensure to check these sources for the most up-to-date usage protocols and practices.