Ts-jest: Error TS18003 - 22.4.6 upgrade to 23.0.0

Created on 9 Jul 2018  路  4Comments  路  Source: kulshekhar/ts-jest

Since ts-jest 23.0.0
Version 22.4.6 still working.

error TS18003: No inputs were found in config file 'tsconfig.json'.Specified 'include' paths were '["src/**/*"]' and 'exclude' paths were '["./dist"]'

Delete includes: [...] in tsconfig.json can fix this but these is no option.

Older Issue:

536

Most helpful comment

I'm also experiencing the same thing:

Some errors occurred while attempting to read from /myProject/src/specs/tsconfig.json: message TS6096: File '../../tsconfig' does not exist.

I'm running the "test" script from my package.json, which is simply "jest". And my jest config is this:

    "globals": {
      "ts-jest": {
        "tsConfigFile": "src/specs/tsconfig.json"
      }
    },

With ts-jest version 22.4.2 there is no error.

All 4 comments

I am seeing a similar issue which might be related. It looks like all of the paths in the tsconfig file are relative to the current working process not the current directory. I noticed this because my tests are failing because it cannot find the file from my extends property. I was able to reproduce this here https://github.com/plee-nm/ts-jest . Please let me know if you need any more information.

I'm also experiencing the same thing:

Some errors occurred while attempting to read from /myProject/src/specs/tsconfig.json: message TS6096: File '../../tsconfig' does not exist.

I'm running the "test" script from my package.json, which is simply "jest". And my jest config is this:

    "globals": {
      "ts-jest": {
        "tsConfigFile": "src/specs/tsconfig.json"
      }
    },

With ts-jest version 22.4.2 there is no error.

Any updates on this? It seems like any relative path file reading is broken from 23 release. Please let me know if you need more information.

The latest version (23.1.2) addressed some issues related to relative paths. Also <rootDir> can now be used in tsConfigFile as in other jest options.

Feel free to re-open this issue, providing the link to a minimal repo where we can reproduce the issue, in case the problem persist.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Vinnl picture Vinnl  路  3Comments

japhar81 picture japhar81  路  3Comments

GeeWee picture GeeWee  路  4Comments

Slessi picture Slessi  路  3Comments

artola picture artola  路  3Comments