Skip to content

Commit 36c5580

Browse files
craigspaethXhmikosR
authored andcommitted
Add test to 138
1 parent eacd161 commit 36c5580

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/test.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,18 @@ describe('dependencyTree', () => {
964964

965965
assert.equal(typeof config.tsConfig, 'object');
966966
});
967+
968+
it('includes the tsConfigPath so filing-cabinet can still resolve compilerOptions.paths correctly', () => {
969+
const directory = path.join(__dirname, 'fixtures/ts');
970+
const tsConfigPath = path.join(directory, '.tsconfig');
971+
const config = new Config({
972+
filename: 'foo',
973+
directory: 'bar',
974+
tsConfig: tsConfigPath
975+
});
976+
977+
assert.equal(config.tsConfigPath, tsConfigPath);
978+
});
967979
});
968980

969981
describe('when cloning', () => {

0 commit comments

Comments
 (0)