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/[email protected]'. ========",
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/[email protected]'. ========",
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/[email protected]'. ========",
6059
"======== Resolving module 'troublesome-lib/lib/Option' from '/shared/lib/app.d.ts'. ========",
6160
"Module resolution kind is not specified, using 'NodeJs'.",

0 commit comments

Comments
 (0)