@jest/types
This package contains shared types of Jest's packages.
Last updated 3 years ago by simenb .
MIT · Repository · Bugs · Original npm
$ cnpm install @jest/types 
SYNC missed versions from official npm registry.

@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;

Current Tags

  • 24.2.0-alpha.0                                ...           beta (6 years ago)
  • 25.2.1-alpha.2                                ...           canary (5 years ago)
  • 29.6.1                                ...           latest (2 years ago)
  • 26.0.1-alpha.0                                ...           next (5 years ago)

29 Versions

  • 29.6.1                                ...           2 years ago
  • 29.6.0                                ...           2 years ago
  • 29.5.0                                ...           2 years ago
  • 29.3.1                                ...           3 years ago
  • 29.2.1                                ...           3 years ago
  • 29.1.0                                ...           3 years ago
  • 29.0.0-alpha.6                                ...           3 years ago
  • 29.0.0                                ...           3 years ago
  • 28.1.3                                ...           3 years ago
  • 28.1.1                                ...           3 years ago
  • 28.0.0-alpha.9                                ...           3 years ago
  • 28.1.0                                ...           3 years ago
  • 28.0.0-alpha.7                                ...           3 years ago
  • 27.5.1                                ...           4 years ago
  • 27.4.2                                ...           4 years ago
  • 27.1.1                                ...           4 years ago
  • 27.1.0                                ...           4 years ago
  • 27.0.0-next.10                                ...           4 years ago
  • 27.0.6                                ...           4 years ago
  • 27.0.0-next.1                                ...           5 years ago
  • 26.6.2                                ...           5 years ago
  • 26.3.0                                ...           5 years ago
  • 26.0.1-alpha.0                                ...           5 years ago
  • 25.2.1-alpha.2                                ...           5 years ago
  • 24.2.0-alpha.0                                ...           6 years ago
  • 26.1.0                                ...           5 years ago
  • 26.0.1                                ...           5 years ago
  • 24.9.0                                ...           6 years ago
  • 25.5.0                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org