Issue
TypeScript command resolves symlinked modules but ts-jest does not.
Steps to reproduce
I have a node_modules structure looks like this (generated by using pnpm as package manager):
+ index.ts
+ node_modules/
+ bar (symlink) → .registry.npmjs.org/1.2.3/node_modules/bar
+ .registry.npmjs.org/1.2.3/node_modules/
+ foo/index.ts
+ bar/index.ts
<root>/index.ts:
import Bar from 'bar'
export default class Root extends Bar {
getData () {
return this.data // 'protected data' from 'class Foo' of package 'foo'
}
}
<root>/node_modules/.registry.npmjs.org/1.2.3/node_modules/foo/index.ts:
import Foo from 'foo'
export default class Bar extends Foo {}
<root>/node_modules/.registry.npmjs.org/1.2.3/node_modules/bar/index.ts:
export default class Foo {
protected data = 123
}
Expected behavior
No errors
Current behavior
error TS2339: Property 'data' does not exist
This is travis log in my project: https://travis-ci.org/ksxnodemodules/external-dependencies/builds/444756379
Issue
TypeScript command resolves symlinked modules but ts-jest does not.
Steps to reproduce
I have a
node_modulesstructure looks like this (generated by using pnpm as package manager):<root>/index.ts:
<root>/node_modules/.registry.npmjs.org/1.2.3/node_modules/foo/index.ts:
<root>/node_modules/.registry.npmjs.org/1.2.3/node_modules/bar/index.ts:
Expected behavior
No errors
Current behavior
This is travis log in my project: https://travis-ci.org/ksxnodemodules/external-dependencies/builds/444756379