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

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

Open AlonMiz opened this issue 6 months ago • 0 comments

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 avatar Dec 04 '23 08:12 AlonMiz