File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 11/// <reference path="./fourslash.ts" />
22
3- // @allowJs : true
4- // @Filename : /library.js
3+ // @module : commonjs
4+ // @checkJs : true
5+
6+ // @Filename : ./library.js
57//// module.exports.aaa = function() {}
68//// module.exports.bbb = function() {}
79
8- // @Filename : /foo.js
10+ // @Filename : . /foo.js
911//// var aaa = require("./library.js").aaa;
1012//// aaa();
11- //// /**/bbb
13+ //// /*$ */bbb
1214
13- goTo . marker ( ) ;
14- verify . getAndApplyCodeFix ( ts . Diagnostics . Cannot_find_name_0 . code ) ;
15+ goTo . marker ( "$" )
16+ verify . codeFixAvailable ( [
17+ { description : "Import 'bbb' from module \"./library.js\"" } ,
18+ { description : "Ignore this error message" } ,
19+ { description : "Disable checking for this file" } ,
20+ { description : "Convert to ES module" } ,
21+ ] ) ;
You can’t perform that action at this time.
0 commit comments