We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce282b commit ea2c290Copy full SHA for ea2c290
tests/cases/fourslash/importFixesWithExistingDottedRequire.ts
@@ -1,14 +1,14 @@
1
/// <reference path="./fourslash.ts" />
2
3
// @allowJs: true
4
-// @module: commonjs
5
// @Filename: /library.js
6
-//// export function aaa() {}
7
-//// export function bbb() {}
+//// module.exports.aaa = function() {}
+//// module.exports.bbb = function() {}
8
9
// @Filename: /foo.js
10
-//// var a = require("./library").aaa;
11
-//// bbb/**/
+//// var aaa = require("./library.js").aaa;
+//// aaa();
+//// /**/bbb
12
13
goTo.marker();
14
-verify.codeFixAvailable();
+verify.getAndApplyCodeFix(ts.Diagnostics.Cannot_find_name_0.code);
0 commit comments