mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update some baseUrl tests to ignore deprecations
Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
This commit is contained in:
co-authored by
DanielRosenwasser
parent
b31fc03b89
commit
de7c7eeda5
@@ -1,20 +0,0 @@
|
||||
root/tsconfig.json(5,13): error TS5061: Pattern '*1*' can have at most one '*' character.
|
||||
root/tsconfig.json(5,22): error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
|
||||
|
||||
|
||||
==== root/tsconfig.json (2 errors) ====
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./src",
|
||||
"paths": {
|
||||
"*1*": [ "*2*" ]
|
||||
~~~~~
|
||||
!!! error TS5061: Pattern '*1*' can have at most one '*' character.
|
||||
~~~~~
|
||||
!!! error TS5062: Substitution '*2*' in pattern '*1*' can have at most one '*' character.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
==== root/src/folder1/file1.ts (0 errors) ====
|
||||
export var x = 1;
|
||||
@@ -1,8 +1,6 @@
|
||||
[
|
||||
"======== Resolving module 'folder2/file2' from 'c:/root/folder1/file1.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'Classic'.",
|
||||
"'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'folder2/file2'.",
|
||||
"Resolving module name 'folder2/file2' relative to base url 'c:/root' - 'c:/root/folder2/file2'.",
|
||||
"File 'c:/root/folder2/file2.ts' exists - use it as a name resolution result.",
|
||||
"======== Module name 'folder2/file2' was successfully resolved to 'c:/root/folder2/file2.ts'. ========",
|
||||
"======== Resolving module './file3' from 'c:/root/folder2/file2.ts'. ========",
|
||||
@@ -11,11 +9,6 @@
|
||||
"======== Module name './file3' was successfully resolved to 'c:/root/folder2/file3.ts'. ========",
|
||||
"======== Resolving module 'file4' from 'c:/root/folder2/file2.ts'. ========",
|
||||
"Explicitly specified module resolution kind: 'Classic'.",
|
||||
"'baseUrl' option is set to 'c:/root', using this value to resolve non-relative module name 'file4'.",
|
||||
"Resolving module name 'file4' relative to base url 'c:/root' - 'c:/root/file4'.",
|
||||
"File 'c:/root/file4.ts' does not exist.",
|
||||
"File 'c:/root/file4.tsx' does not exist.",
|
||||
"File 'c:/root/file4.d.ts' does not exist.",
|
||||
"File 'c:/root/folder2/file4.ts' does not exist.",
|
||||
"File 'c:/root/folder2/file4.tsx' does not exist.",
|
||||
"File 'c:/root/folder2/file4.d.ts' does not exist.",
|
||||
|
||||
@@ -4,14 +4,15 @@
|
||||
// baseurl is defined in tsconfig.json
|
||||
// paths has errors
|
||||
|
||||
// @filename: root/tsconfig.json
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./src",
|
||||
"paths": {
|
||||
"*1*": [ "*2*" ]
|
||||
}
|
||||
}
|
||||
// @filename: root/tsconfig.json
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./src",
|
||||
"paths": {
|
||||
"*1*": [ "*2*" ]
|
||||
},
|
||||
"ignoreDeprecations": "6.0"
|
||||
}
|
||||
}
|
||||
|
||||
// @filename: root/src/folder1/file1.ts
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @moduleResolution: classic
|
||||
// @module: amd
|
||||
// @baseUrl: c:/root
|
||||
// @moduleResolution: classic
|
||||
// @module: amd
|
||||
// @baseUrl: c:/root
|
||||
// @ignoreDeprecations: 6.0
|
||||
// @traceResolution: true
|
||||
|
||||
// baseUrl set via command line
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// @moduleResolution: bundler
|
||||
// @module: commonjs
|
||||
// @baseUrl: c:/root
|
||||
// @moduleResolution: bundler
|
||||
// @module: commonjs
|
||||
// @baseUrl: c:/root
|
||||
// @ignoreDeprecations: 6.0
|
||||
// @traceResolution: true
|
||||
|
||||
// baseUrl set via command line
|
||||
|
||||
@@ -4,11 +4,12 @@
|
||||
|
||||
// baseUrl set via command line
|
||||
|
||||
// @filename: c:/root/tsconfig.json
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "."
|
||||
}
|
||||
// @filename: c:/root/tsconfig.json
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"ignoreDeprecations": "6.0"
|
||||
}
|
||||
}
|
||||
|
||||
// @filename: c:/root/folder1/file1.ts
|
||||
|
||||
Reference in New Issue
Block a user