TypeScript/tests/cases/fourslash/goToDefinitionDestructuredRequire1.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

14 lines
260 B
TypeScript

/// <reference path="fourslash.ts" />
// @allowJs: true
// @Filename: util.js
//// class /*2*/Util {}
//// module.exports = { Util };
// @Filename: index.js
//// const { Util } = require('./util');
//// new [|Util/*1*/|]()
verify.goToDefinition("1", "2");