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 1
1
/// <reference path="./fourslash.ts" />
2
2
3
- // @allowJs : true
4
- // @Filename : /library.js
3
+ // @module : commonjs
4
+ // @checkJs : true
5
+
6
+ // @Filename : ./library.js
5
7
//// module.exports.aaa = function() {}
6
8
//// module.exports.bbb = function() {}
7
9
8
- // @Filename : /foo.js
10
+ // @Filename : . /foo.js
9
11
//// var aaa = require("./library.js").aaa;
10
12
//// aaa();
11
- //// /**/bbb
13
+ //// /*$ */bbb
12
14
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