Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ESM #26

Open
1 of 3 tasks
messaooudi opened this issue Feb 23, 2023 · 0 comments
Open
1 of 3 tasks

Support ESM #26

messaooudi opened this issue Feb 23, 2023 · 0 comments

Comments

@messaooudi
Copy link

I'm submitting a ...

  • Bug report
  • Feature request
  • Docs update

What is the current behavior/state of the project?
The project does not support ESM build because of an incorrect TS type definition and yields the following error

import MatchMediaMock from "jest-matchmedia-mock";
new MatchMediaMock();
// ts-error: Type 'typeof import(".../node_modules/jest-matchmedia-mock/dist/matchmedia-mock")' has no construct signatures.

What is the desired behavior?
Having the TS type definition reflect the runtime behavior when imported in an ESM module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant