We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea2c290 commit d954948Copy full SHA for d954948
tests/cases/fourslash/importFixesWithExistingDottedRequire.ts
@@ -1,14 +1,21 @@
1
/// <reference path="./fourslash.ts" />
2
3
-// @allowJs: true
4
-// @Filename: /library.js
+// @module: commonjs
+// @checkJs: true
5
+
6
+// @Filename: ./library.js
7
//// module.exports.aaa = function() {}
8
//// module.exports.bbb = function() {}
9
-// @Filename: /foo.js
10
+// @Filename: ./foo.js
11
//// var aaa = require("./library.js").aaa;
12
//// aaa();
-//// /**/bbb
13
+//// /*$*/bbb
14
-goTo.marker();
-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
+]);
0 commit comments