TypeScript/tests/cases/fourslash/goToDefinitionImportedNames11.ts
Andrew Branch 6ee4a6b7f0
Skip past module.exports = { Foo } in go-to-defintion on 'Foo' (#40835)
* Add test

* Skip shorthand property assignments of module.exports in go-to-definition

* Skip past shorthand property assignments in module.exports in go-to-definition

* Revert WIP change

* Fix comment typo

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-10-05 11:47:19 -07:00

16 lines
347 B
TypeScript

/// <reference path='fourslash.ts' />
// @allowjs: true
// @Filename: a.js
//// class /*classDefinition*/Class {
//// f;
//// }
//// module.exports = { Class };
// @Filename: b.js
////const { Class } = require("./a");
//// [|/*classAliasDefinition*/Class|];
verify.goToDefinition("classAliasDefinition", "classDefinition");