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

Feature Request: Support "export" package #615

Open
mikicho opened this issue Jun 9, 2023 · 0 comments
Open

Feature Request: Support "export" package #615

mikicho opened this issue Jun 9, 2023 · 0 comments

Comments

@mikicho
Copy link

mikicho commented Jun 9, 2023

I would like to utilize the export assertion library without relying on jest as a test runner. Although it currently operates well at runtime, we need to address some typing issues. I have tackled this by modifying my global.d.ts file and it is functioning (almost) properly.

declare module 'expect' {
  interface Matchers<R> extends CustomMatchers<R> {}
  interface AsymmetricMatchers extends CustomMatchers<any> {}
  // expect.not... returns any due to https://github.com/microsoft/TypeScript/issues/50638 (Expect.Inverse<Omit<...>>)
}

But I'm not a Typescript expert so I'm not sure how to fix the expect.not scenario.

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