TypeScript/tests/cases/fourslash/importFixWithMultipleModuleExportAssignment.ts
Andrew Branch 736363b427
Use other files when necessary to determine import style in JS (#40879)
* Use other files when necessary to determine import style in JS

* Fix existing tests
2020-10-05 11:39:20 -07:00

23 lines
352 B
TypeScript

/// <reference path="fourslash.ts" />
// @module: esnext
// @allowJs: true
// @checkJs: true
// @Filename: /a.js
////function f() {}
////module.exports = f;
////module.exports = 42;
// @Filename: /b.js
////export const foo = 0;
// @Filename: /c.js
////foo
goTo.file("/c.js");
verify.importFixAtPosition([
`const { foo } = require("./b");
foo`]);