1/// <reference path='fourslash.ts' /> 2 3// TODO: Maybe we could transform this to `export function f() {}`. 4 5// @allowJs: true 6// @target: esnext 7 8// @Filename: /a.js 9////function f() {} 10////module.exports = { f }; 11 12verify.codeFix({ 13 description: "Convert to ES6 module", 14 newFileContent: 15`function f() {} 16export default { f };`, 17}); 18