22 lines
328 B
TypeScript
22 lines
328 B
TypeScript
|
/// <reference path="fourslash.ts" />
|
||
|
|
||
|
// @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([
|
||
|
`import { foo } from "./b";
|
||
|
|
||
|
foo`]);
|