jest-extended icon indicating copy to clipboard operation
jest-extended copied to clipboard

TypeScript declarations are not working when used with @jest/globals

Open slavafomin opened this issue 5 months ago • 0 comments

Hello!

Thank you for this great library!

However, when using TypeScript and Jest with @jest/globals, the declarations provided by the package doesn't work. E.g.:

import 'jest-extended';

import { expect } from '@jest/globals';

// TS2339: Property toIncludeSameMembers does not exist on type
expect([]).toIncludeSameMembers([]);

Have you considered this use case? Thank you.

slavafomin avatar Jan 16 '24 19:01 slavafomin