@jest/types
TypeScript icon, indicating that this package has built-in type declarations

29.6.3 • Public • Published

@jest/types

This package contains shared types of Jest's packages.

If you are looking for types of Jest globals, you can import them from @jest/globals package:

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

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

If you prefer to omit imports, a similar result can be achieved installing the @types/jest package. Note that this is a third party library maintained at DefinitelyTyped and may not cover the latest Jest features.

Another use-case for @types/jest is a typed Jest config as those types are not provided by Jest out of the box:

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

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

export default config;

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
29.6.326,148,292latest
30.0.0-alpha.7140,742next

Version History

VersionDownloads (Last 7 Days)Published
30.0.0-alpha.7140,742
30.0.0-alpha.6135,289
30.0.0-alpha.59,458
30.0.0-alpha.4498
30.0.0-alpha.33,913
30.0.0-alpha.28,377
30.0.0-alpha.1333
29.6.326,148,292
29.6.1872,064
29.6.040,349
29.5.01,541,430
29.4.3272,221
29.4.274,141
29.4.195,417
29.4.026,638
29.3.1668,756
29.2.1217,658
29.2.013,601
29.1.250,170
29.1.0157,978
29.0.3143,807
29.0.239,636
29.0.132,960
29.0.02,495
29.0.0-alpha.61
29.0.0-alpha.411
29.0.0-alpha.30
29.0.0-alpha.20
29.0.0-alpha.00
28.1.35,275,089
28.1.1212,641
28.1.0113,354
28.0.234,794
28.0.12,297
28.0.01,684
28.0.0-alpha.90
28.0.0-alpha.80
28.0.0-alpha.75,543
28.0.0-alpha.60
28.0.0-alpha.50
28.0.0-alpha.47
28.0.0-alpha.30
28.0.0-alpha.20
28.0.0-alpha.10
28.0.0-alpha.00
27.5.116,938,439
27.5.017,786
27.4.2708,059
27.4.1402
27.4.04,731
27.2.5391,097
27.2.4200,308
27.2.39,263
27.1.1189,143
27.1.078,851
27.0.6363,409
27.0.2276,065
27.0.18,145
27.0.0-next.1012
27.0.0-next.81,111
27.0.0-next.784
27.0.0-next.3457
27.0.0-next.12,077
27.0.0-next.00
26.6.28,519,656
26.6.1122,185
26.6.040,055
26.5.294,730
26.5.013,512
26.3.0522,284
26.2.058,749
26.1.0365,321
26.0.1186,822
26.0.1-alpha.00
26.0.0597
26.0.0-alpha.20
26.0.0-alpha.10
26.0.0-alpha.00
25.5.01,923,042
25.4.038,115
25.3.0115,159
25.2.641,966
25.2.335,709
25.2.124,228
25.2.1-alpha.20
25.2.1-alpha.10
25.2.0397
25.2.0-alpha.862
25.1.0109,530
25.0.02,804
24.9.03,086,466
24.8.099,183
24.7.024,471
24.6.0420
24.5.07,900
24.3.0366
24.2.0-alpha.00

Package Sidebar

Install

npm i @jest/types

Weekly Downloads

66,683,228

Version

29.6.3

License

MIT

Unpacked Size

32.7 kB

Total Files

10

Last publish

Collaborators

  • aaronabramov
  • simenb
  • rickhanlonii
  • openjs-operations
  • cpojer