TypeScript/tests/cases/compiler/pathMappingBasedModuleResolution8_node.ts
Alan Agius 3893ed498f fix: matchedText module resolution incorrect length (#21647)
* fix: `matchedText` was not properly extract the correct parts from the candidate

closes: #21636

* core: replace `substr` with `substring` in `matchedText`

* test: remove redundant code from tests
2018-02-07 12:54:37 -08:00

22 lines
445 B
TypeScript

// @moduleResolution: node
// @module: commonjs
// @traceResolution: true
// @filename: c:/root/tsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@speedy/*/testing": [
"*/dist/index.ts"
]
}
}
}
// @filename: c:/root/index.ts
import {x} from "@speedy/folder1/testing"
// @filename: c:/root/folder1/dist/index.ts
export const x = 1 + 2;