2018-11-02 17:08:04 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
2020-02-28 23:34:20 +01:00
|
|
|
// @module: esnext
|
2018-11-02 17:08:04 +01:00
|
|
|
// @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([
|
2020-10-05 20:39:20 +02:00
|
|
|
`const { foo } = require("./b");
|
2018-11-02 17:08:04 +01:00
|
|
|
|
|
|
|
foo`]);
|