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

TS2694: Namespace 'Config' has no exported member 'PrettyFormatOptions'. #307

Open
AlonMiz opened this issue Dec 4, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@AlonMiz
Copy link

AlonMiz commented Dec 4, 2023

Describe the bug

Compilation type issue

../node_modules/jest-preview/dist/next.d.ts(86,28): error TS2694: Namespace 'Config' has no exported member 'PrettyFormatOptions'.

Screenshots

image

Reproduce

"babel-jest": "29.7.0"
typescript 5.2.2
jest-preview 0.3.1

Expected behavior

to not be dependant on jest version and types

Environment (please complete the following information)

  • OS: every
  • Browser: not relevant
  • Jest version: 29.7

Additional context

I would not expect my bundler to fail on test files.
so ignoring type checking of the test folder resolved the issue

{
  "extends": "./tsconfig.json",
  "exclude": [
    ...
    "./src/unit-tests"
  ]
}
@AlonMiz AlonMiz added the bug Something isn't working label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant