* Support add new requires * Always use destructuring for requiring default exports * Add more tests * Update existing fourslash tests * Use `getExportsAndPropertiesOfModule` * Add UMD test * Apply suggestions from code review Fix typos Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
19 lines
266 B
TypeScript
19 lines
266 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @module: esnext
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
|
|
// @Filename: /a.js
|
|
////class C {}
|
|
////export default C;
|
|
|
|
// @Filename: /b.js
|
|
////[|C;|]
|
|
|
|
goTo.file("/b.js");
|
|
verify.importFixAtPosition([
|
|
`import C from "./a";
|
|
|
|
C;`,
|
|
]);
|