Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 549 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 549 Bytes

@jest/types

This package contains shared types of Jest's packages.

If you're a user of Jest and looking for types, you could import @jest/globals:

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

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

If you don't want to import types, you could install the @types/jest package. This is not maintained by the Jest team though.

See #9972 for more info.