Skip to content

Multiple type definitions are not found using Jest 24.3.1 #8085

@janhartmann

Description

@janhartmann

🐛 Bug Report

I just upgraded a large TypeScript project to using Jest 24.3.1 together with @types/jest 24.0.9 and experiencing problems on compiling the project, that Jest is not able to find the following types:

ERROR in [at-loader] ./node_modules/@jest/reporters/build/generateEmptyCoverage.d.ts:7:22 
    TS6053: File '/Users/janhartmann/Projects/manager-ui/client/node_modules/@jest/reporters/src/istanbul-lib-coverage.d.ts' not found.

ERROR in [at-loader] ./node_modules/@jest/reporters/build/coverage_reporter.d.ts:7:22 
    TS6053: File '/Users/janhartmann/Projects/manager-ui/client/node_modules/@jest/reporters/src/istanbul-lib-coverage.d.ts' not found.

ERROR in [at-loader] ./node_modules/@jest/reporters/build/coverage_reporter.d.ts:8:22 
    TS6053: File '/Users/janhartmann/Projects/manager-ui/client/node_modules/@jest/reporters/src/istanbul-api.d.ts' not found.

ERROR in [at-loader] ./node_modules/@jest/reporters/build/notify_reporter.d.ts:7:22 
    TS6053: File '/Users/janhartmann/Projects/manager-ui/client/node_modules/@jest/reporters/src/node-notifier.d.ts' not found.

Run npx envinfo --preset jest

Paste the results here:

npx: installed 1 in 1.309s

  System:
    OS: macOS 10.14.3
    CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
  Binaries:
    Node: 11.10.1 - /usr/local/bin/node
    Yarn: 1.13.0 - /usr/local/bin/yarn
    npm: 6.7.0 - /usr/local/bin/npm
  npmPackages:
    jest: 24.3.1 => 24.3.1 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions