Skip to content

Commit 4466eb4

Browse files
Update Baselines and/or Applied Lint Fixes
1 parent 116b9b3 commit 4466eb4

File tree

43 files changed

+79
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+79
-156
lines changed

tests/baselines/reference/duplicatePackage_relativeImportWithinPackage.trace.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"File '/node_modules/foo/index.ts' does not exist.",
2828
"File '/node_modules/foo/index.tsx' does not exist.",
2929
"File '/node_modules/foo/index.d.ts' exist - use it as a name resolution result.",
30-
"Found 'package.json' at '/node_modules/foo/package.json'.",
31-
"'package.json' does not have a 'typesVersions' field.",
30+
"Using cached result of 'package.json' at '/node_modules/foo/package.json' that indicates it was found.",
3231
"======== Module name './index' was successfully resolved to '/node_modules/foo/index.d.ts' with Package ID 'foo/index.d.ts@1.2.3'. ========",
3332
"======== Resolving module 'foo' from '/node_modules/a/index.d.ts'. ========",
3433
"Module resolution kind is not specified, using 'NodeJs'.",

tests/baselines/reference/duplicatePackage_relativeImportWithinPackage_scoped.trace.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"File '/node_modules/@foo/bar/index.ts' does not exist.",
2828
"File '/node_modules/@foo/bar/index.tsx' does not exist.",
2929
"File '/node_modules/@foo/bar/index.d.ts' exist - use it as a name resolution result.",
30-
"Found 'package.json' at '/node_modules/@foo/bar/package.json'.",
31-
"'package.json' does not have a 'typesVersions' field.",
30+
"Using cached result of 'package.json' at '/node_modules/@foo/bar/package.json' that indicates it was found.",
3231
"======== Module name './index' was successfully resolved to '/node_modules/@foo/bar/index.d.ts' with Package ID '@foo/bar/index.d.ts@1.2.3'. ========",
3332
"======== Resolving module '@foo/bar' from '/node_modules/a/index.d.ts'. ========",
3433
"Module resolution kind is not specified, using 'NodeJs'.",

tests/baselines/reference/importWithTrailingSlash.trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"======== Resolving module '../' from '/a/b/test.ts'. ========",
1919
"Explicitly specified module resolution kind: 'NodeJs'.",
2020
"Loading module as file / folder, candidate module location '/a/', target file type 'TypeScript'.",
21-
"File '/a/package.json' does not exist.",
21+
"Using cached result of 'package.json' at '/a/package.json' that indicates it was not found.",
2222
"File '/a/index.ts' exist - use it as a name resolution result.",
2323
"======== Module name '../' was successfully resolved to '/a/index.ts'. ========"
2424
]

tests/baselines/reference/library-reference-1.trace.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
"File 'types/jquery/index.d.ts' exist - use it as a name resolution result.",
66
"Resolving real path for 'types/jquery/index.d.ts', result '/src/types/jquery/index.d.ts'.",
77
"======== Type reference directive 'jquery' was successfully resolved to '/src/types/jquery/index.d.ts', primary: true. ========",
8-
"======== Resolving type reference directive 'jquery', containing file '/src/__inferred type names__.ts', root directory 'types'. ========",
9-
"Resolving with primary search path 'types'.",
10-
"File 'types/jquery/package.json' does not exist.",
11-
"File 'types/jquery/index.d.ts' exist - use it as a name resolution result.",
12-
"Resolving real path for 'types/jquery/index.d.ts', result '/src/types/jquery/index.d.ts'.",
8+
"======== Resolving type reference directive 'jquery', containing file '/src/__inferred type names__.ts'. ========",
9+
"Resolution for type reference directive 'jquery' was found in cache from location '/src'.",
1310
"======== Type reference directive 'jquery' was successfully resolved to '/src/types/jquery/index.d.ts', primary: true. ========"
1411
]

tests/baselines/reference/library-reference-10.trace.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@
77
"File 'types/jquery/jquery.d.ts' exist - use it as a name resolution result.",
88
"Resolving real path for 'types/jquery/jquery.d.ts', result '/foo/types/jquery/jquery.d.ts'.",
99
"======== Type reference directive 'jquery' was successfully resolved to '/foo/types/jquery/jquery.d.ts', primary: true. ========",
10-
"======== Resolving type reference directive 'jquery', containing file '/foo/__inferred type names__.ts', root directory './types'. ========",
11-
"Resolving with primary search path './types'.",
12-
"Found 'package.json' at './types/jquery/package.json'.",
13-
"'package.json' does not have a 'typesVersions' field.",
14-
"'package.json' has 'typings' field 'jquery.d.ts' that references 'types/jquery/jquery.d.ts'.",
15-
"File 'types/jquery/jquery.d.ts' exist - use it as a name resolution result.",
16-
"Resolving real path for 'types/jquery/jquery.d.ts', result '/foo/types/jquery/jquery.d.ts'.",
10+
"======== Resolving type reference directive 'jquery', containing file '/foo/__inferred type names__.ts'. ========",
11+
"Resolution for type reference directive 'jquery' was found in cache from location '/foo'.",
1712
"======== Type reference directive 'jquery' was successfully resolved to '/foo/types/jquery/jquery.d.ts', primary: true. ========"
1813
]

tests/baselines/reference/library-reference-2.trace.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
"======== Type reference directive 'jquery' was successfully resolved to '/types/jquery/jquery.d.ts', primary: true. ========",
1111
"======== Resolving type reference directive 'jquery', containing file '/test/__inferred type names__.ts', root directory '/types'. ========",
1212
"Resolving with primary search path '/types'.",
13-
"Found 'package.json' at '/types/jquery/package.json'.",
14-
"'package.json' does not have a 'typesVersions' field.",
13+
"Using cached result of 'package.json' at '/types/jquery/package.json' that indicates it was found.",
1514
"'package.json' does not have a 'typings' field.",
1615
"'package.json' has 'types' field 'jquery.d.ts' that references '/types/jquery/jquery.d.ts'.",
1716
"File '/types/jquery/jquery.d.ts' exist - use it as a name resolution result.",

tests/baselines/reference/library-reference-6.trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ========",
88
"======== Resolving type reference directive 'alpha', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========",
99
"Resolving with primary search path '/node_modules/@types'.",
10-
"File '/node_modules/@types/alpha/package.json' does not exist.",
10+
"Using cached result of 'package.json' at '/node_modules/@types/alpha/package.json' that indicates it was not found.",
1111
"File '/node_modules/@types/alpha/index.d.ts' exist - use it as a name resolution result.",
1212
"Resolving real path for '/node_modules/@types/alpha/index.d.ts', result '/node_modules/@types/alpha/index.d.ts'.",
1313
"======== Type reference directive 'alpha' was successfully resolved to '/node_modules/@types/alpha/index.d.ts', primary: true. ========"

tests/baselines/reference/library-reference-8.trace.json

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,20 @@
1313
"======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ========",
1414
"======== Resolving type reference directive 'beta', containing file '/test/types/alpha/index.d.ts', root directory '/test/types'. ========",
1515
"Resolving with primary search path '/test/types'.",
16-
"File '/test/types/beta/package.json' does not exist.",
16+
"Using cached result of 'package.json' at '/test/types/beta/package.json' that indicates it was not found.",
1717
"File '/test/types/beta/index.d.ts' exist - use it as a name resolution result.",
1818
"Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'.",
1919
"======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ========",
2020
"======== Resolving type reference directive 'alpha', containing file '/test/types/beta/index.d.ts', root directory '/test/types'. ========",
2121
"Resolving with primary search path '/test/types'.",
22-
"File '/test/types/alpha/package.json' does not exist.",
22+
"Using cached result of 'package.json' at '/test/types/alpha/package.json' that indicates it was not found.",
2323
"File '/test/types/alpha/index.d.ts' exist - use it as a name resolution result.",
2424
"Resolving real path for '/test/types/alpha/index.d.ts', result '/test/types/alpha/index.d.ts'.",
2525
"======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ========",
26-
"======== Resolving type reference directive 'alpha', containing file '/test/__inferred type names__.ts', root directory '/test/types'. ========",
27-
"Resolving with primary search path '/test/types'.",
28-
"File '/test/types/alpha/package.json' does not exist.",
29-
"File '/test/types/alpha/index.d.ts' exist - use it as a name resolution result.",
30-
"Resolving real path for '/test/types/alpha/index.d.ts', result '/test/types/alpha/index.d.ts'.",
26+
"======== Resolving type reference directive 'alpha', containing file '/test/__inferred type names__.ts'. ========",
27+
"Resolution for type reference directive 'alpha' was found in cache from location '/test'.",
3128
"======== Type reference directive 'alpha' was successfully resolved to '/test/types/alpha/index.d.ts', primary: true. ========",
32-
"======== Resolving type reference directive 'beta', containing file '/test/__inferred type names__.ts', root directory '/test/types'. ========",
33-
"Resolving with primary search path '/test/types'.",
34-
"File '/test/types/beta/package.json' does not exist.",
35-
"File '/test/types/beta/index.d.ts' exist - use it as a name resolution result.",
36-
"Resolving real path for '/test/types/beta/index.d.ts', result '/test/types/beta/index.d.ts'.",
29+
"======== Resolving type reference directive 'beta', containing file '/test/__inferred type names__.ts'. ========",
30+
"Resolution for type reference directive 'beta' was found in cache from location '/test'.",
3731
"======== Type reference directive 'beta' was successfully resolved to '/test/types/beta/index.d.ts', primary: true. ========"
3832
]

tests/baselines/reference/maxNodeModuleJsDepthDefaultsToZero.trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"File '/node_modules/shortid/index.d.ts' does not exist.",
1212
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
1313
"Loading module 'shortid' from 'node_modules' folder, target file type 'JavaScript'.",
14-
"File '/node_modules/shortid/package.json' does not exist.",
14+
"Using cached result of 'package.json' at '/node_modules/shortid/package.json' that indicates it was not found.",
1515
"File '/node_modules/shortid.js' does not exist.",
1616
"File '/node_modules/shortid.jsx' does not exist.",
1717
"File '/node_modules/shortid/index.js' exist - use it as a name resolution result.",

tests/baselines/reference/moduleResolutionPackageIdWithRelativeAndAbsolutePath.trace.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
"File '/project/node_modules/troublesome-lib/lib/Option.ts' does not exist.",
5555
"File '/project/node_modules/troublesome-lib/lib/Option.tsx' does not exist.",
5656
"File '/project/node_modules/troublesome-lib/lib/Option.d.ts' exist - use it as a name resolution result.",
57-
"Found 'package.json' at '/project/node_modules/troublesome-lib/package.json'.",
58-
"'package.json' does not have a 'typesVersions' field.",
57+
"Using cached result of 'package.json' at '/project/node_modules/troublesome-lib/package.json' that indicates it was found.",
5958
"======== Module name './Option' was successfully resolved to '/project/node_modules/troublesome-lib/lib/Option.d.ts' with Package ID 'troublesome-lib/lib/Option.d.ts@1.17.1'. ========",
6059
"======== Resolving module 'troublesome-lib/lib/Option' from '/shared/lib/app.d.ts'. ========",
6160
"Module resolution kind is not specified, using 'NodeJs'.",

tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
"File '/node_modules/normalize.css/index.d.ts' does not exist.",
2323
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
2424
"Loading module 'normalize.css' from 'node_modules' folder, target file type 'JavaScript'.",
25-
"Found 'package.json' at '/node_modules/normalize.css/package.json'.",
26-
"'package.json' does not have a 'typesVersions' field.",
25+
"Using cached result of 'package.json' at '/node_modules/normalize.css/package.json' that indicates it was found.",
2726
"File '/node_modules/normalize.css.js' does not exist.",
2827
"File '/node_modules/normalize.css.jsx' does not exist.",
2928
"'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'.",

tests/baselines/reference/moduleResolutionWithExtensions_unexpected2.trace.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
"File '/node_modules/foo/index.d.ts' does not exist.",
2626
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
2727
"Loading module 'foo' from 'node_modules' folder, target file type 'JavaScript'.",
28-
"Found 'package.json' at '/node_modules/foo/package.json'.",
29-
"'package.json' does not have a 'typesVersions' field.",
28+
"Using cached result of 'package.json' at '/node_modules/foo/package.json' that indicates it was found.",
3029
"File '/node_modules/foo.js' does not exist.",
3130
"File '/node_modules/foo.jsx' does not exist.",
3231
"'package.json' does not have a 'main' field.",

tests/baselines/reference/moduleResolutionWithExtensions_withAmbientPresent.trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"File '/node_modules/js/index.d.ts' does not exist.",
1212
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
1313
"Loading module 'js' from 'node_modules' folder, target file type 'JavaScript'.",
14-
"File '/node_modules/js/package.json' does not exist.",
14+
"Using cached result of 'package.json' at '/node_modules/js/package.json' that indicates it was not found.",
1515
"File '/node_modules/js.js' does not exist.",
1616
"File '/node_modules/js.jsx' does not exist.",
1717
"File '/node_modules/js/index.js' exist - use it as a name resolution result.",

tests/baselines/reference/moduleResolutionWithExtensions_withPaths.trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"File '/node_modules/foo/lib/test.ts' does not exist.",
2626
"File '/node_modules/foo/lib/test.tsx' does not exist.",
2727
"File '/node_modules/foo/lib/test.d.ts' exist - use it as a name resolution result.",
28-
"File '/node_modules/foo/package.json' does not exist.",
28+
"Using cached result of 'package.json' at '/node_modules/foo/package.json' that indicates it was not found.",
2929
"======== Module name 'foo/test' was successfully resolved to '/node_modules/foo/lib/test.d.ts'. ========",
3030
"======== Resolving module './relative.js' from '/test.ts'. ========",
3131
"Explicitly specified module resolution kind: 'NodeJs'.",

tests/baselines/reference/moduleResolutionWithSymlinks_preserveSymlinks.trace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"======== Resolving module 'linked' from '/app/app.ts'. ========",
2222
"Explicitly specified module resolution kind: 'NodeJs'.",
2323
"Loading module 'linked' from 'node_modules' folder, target file type 'TypeScript'.",
24-
"File '/app/node_modules/linked/package.json' does not exist.",
24+
"Using cached result of 'package.json' at '/app/node_modules/linked/package.json' that indicates it was not found.",
2525
"File '/app/node_modules/linked.ts' does not exist.",
2626
"File '/app/node_modules/linked.tsx' does not exist.",
2727
"File '/app/node_modules/linked.d.ts' does not exist.",
@@ -44,7 +44,7 @@
4444
"Explicitly specified module resolution kind: 'NodeJs'.",
4545
"Loading module 'real' from 'node_modules' folder, target file type 'TypeScript'.",
4646
"Directory '/app/node_modules/linked2/node_modules' does not exist, skipping all lookups in it.",
47-
"File '/app/node_modules/real/package.json' does not exist.",
47+
"Using cached result of 'package.json' at '/app/node_modules/real/package.json' that indicates it was not found.",
4848
"File '/app/node_modules/real.ts' does not exist.",
4949
"File '/app/node_modules/real.tsx' does not exist.",
5050
"File '/app/node_modules/real.d.ts' does not exist.",

tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
"File '/node_modules/foo/bar/index.d.ts' does not exist.",
2222
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
2323
"Loading module 'foo/bar' from 'node_modules' folder, target file type 'JavaScript'.",
24-
"File '/node_modules/foo/bar/package.json' does not exist.",
25-
"Found 'package.json' at '/node_modules/foo/package.json'.",
26-
"'package.json' does not have a 'typesVersions' field.",
24+
"Using cached result of 'package.json' at '/node_modules/foo/bar/package.json' that indicates it was not found.",
25+
"Using cached result of 'package.json' at '/node_modules/foo/package.json' that indicates it was found.",
2726
"File '/node_modules/foo/bar.js' does not exist.",
2827
"File '/node_modules/foo/bar.jsx' does not exist.",
2928
"'package.json' does not have a 'main' field.",

tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@
2121
"File '/node_modules/foo/@bar/index.d.ts' does not exist.",
2222
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
2323
"Loading module 'foo/@bar' from 'node_modules' folder, target file type 'JavaScript'.",
24-
"File '/node_modules/foo/@bar/package.json' does not exist.",
25-
"Found 'package.json' at '/node_modules/foo/package.json'.",
26-
"'package.json' does not have a 'typesVersions' field.",
24+
"Using cached result of 'package.json' at '/node_modules/foo/@bar/package.json' that indicates it was not found.",
25+
"Using cached result of 'package.json' at '/node_modules/foo/package.json' that indicates it was found.",
2726
"File '/node_modules/foo/@bar.js' does not exist.",
2827
"File '/node_modules/foo/@bar.jsx' does not exist.",
2928
"'package.json' does not have a 'main' field.",

tests/baselines/reference/packageJsonMain.trace.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
"File '/node_modules/foo/index.d.ts' does not exist.",
2222
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
2323
"Loading module 'foo' from 'node_modules' folder, target file type 'JavaScript'.",
24-
"Found 'package.json' at '/node_modules/foo/package.json'.",
25-
"'package.json' does not have a 'typesVersions' field.",
24+
"Using cached result of 'package.json' at '/node_modules/foo/package.json' that indicates it was found.",
2625
"File '/node_modules/foo.js' does not exist.",
2726
"File '/node_modules/foo.jsx' does not exist.",
2827
"'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'.",
@@ -58,8 +57,7 @@
5857
"File '/node_modules/bar/index.d.ts' does not exist.",
5958
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
6059
"Loading module 'bar' from 'node_modules' folder, target file type 'JavaScript'.",
61-
"Found 'package.json' at '/node_modules/bar/package.json'.",
62-
"'package.json' does not have a 'typesVersions' field.",
60+
"Using cached result of 'package.json' at '/node_modules/bar/package.json' that indicates it was found.",
6361
"File '/node_modules/bar.js' does not exist.",
6462
"File '/node_modules/bar.jsx' does not exist.",
6563
"'package.json' has 'main' field 'rab.js' that references '/node_modules/bar/rab.js'.",
@@ -90,8 +88,7 @@
9088
"File '/node_modules/baz/index.d.ts' does not exist.",
9189
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
9290
"Loading module 'baz' from 'node_modules' folder, target file type 'JavaScript'.",
93-
"Found 'package.json' at '/node_modules/baz/package.json'.",
94-
"'package.json' does not have a 'typesVersions' field.",
91+
"Using cached result of 'package.json' at '/node_modules/baz/package.json' that indicates it was found.",
9592
"File '/node_modules/baz.js' does not exist.",
9693
"File '/node_modules/baz.jsx' does not exist.",
9794
"'package.json' has 'main' field 'zab' that references '/node_modules/baz/zab'.",

tests/baselines/reference/packageJsonMain_isNonRecursive.trace.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"File '/node_modules/foo/index.d.ts' does not exist.",
2424
"Directory '/node_modules/@types' does not exist, skipping all lookups in it.",
2525
"Loading module 'foo' from 'node_modules' folder, target file type 'JavaScript'.",
26-
"Found 'package.json' at '/node_modules/foo/package.json'.",
27-
"'package.json' does not have a 'typesVersions' field.",
26+
"Using cached result of 'package.json' at '/node_modules/foo/package.json' that indicates it was found.",
2827
"File '/node_modules/foo.js' does not exist.",
2928
"File '/node_modules/foo.jsx' does not exist.",
3029
"'package.json' has 'main' field 'oof' that references '/node_modules/foo/oof'.",

tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_MapedToNodeModules.trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
"File '/node_modules/foo/bar/foobar.js.jsx' does not exist.",
3737
"File name '/node_modules/foo/bar/foobar.js' has a '.js' extension - stripping it.",
3838
"File '/node_modules/foo/bar/foobar.js' exist - use it as a name resolution result.",
39-
"File '/node_modules/foo/package.json' does not exist.",
39+
"Using cached result of 'package.json' at '/node_modules/foo/package.json' that indicates it was not found.",
4040
"======== Module name 'foo/bar/foobar.js' was successfully resolved to '/node_modules/foo/bar/foobar.js'. ========"
4141
]

0 commit comments

Comments
 (0)