-
Notifications
You must be signed in to change notification settings - Fork 12
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
TypeError: Cannot read property 'fileName' of undefined #21
Comments
The same issue here. |
My diagnostic was {
file: undefined,
start: undefined,
length: undefined,
code: 6059,
category: 1,
messageText: {
messageText: "File '/.../test/exchange.test.ts' is not under 'rootDir' '/.../src'. 'rootDir' is expected to contain all source files.",
category: 1,
code: 6059,
next: [ [Object] ]
},
relatedInformation: undefined
} Solved by moving |
I fixed this by adding
to my tsconfig file. |
I had this issue as well when specifying |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I attempted to use jest-runner-tsc for the first time, and am getting the exception when trying to run the test:
The error happens here:
jest-runner-tsc/src/runTsc.js
Lines 62 to 65 in f5100dd
and the
diagnostic
at this point is:Versions:
node.js v10.18.1
jest v.26.4.2
typescript v4.0.2
LMK please if I should dig any deeper.
The text was updated successfully, but these errors were encountered: