File tree 3 files changed +7
-2
lines changed
tests/baselines/reference/project/noDefaultLib
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,8 @@ class ProjectRunner extends RunnerBase {
164
164
mapRoot : testCase . resolveMapRoot && testCase . mapRoot ? ts . sys . resolvePath ( testCase . mapRoot ) : testCase . mapRoot ,
165
165
sourceRoot : testCase . resolveSourceRoot && testCase . sourceRoot ? ts . sys . resolvePath ( testCase . sourceRoot ) : testCase . sourceRoot ,
166
166
module : moduleKind ,
167
- noResolve : testCase . noResolve
167
+ noResolve : testCase . noResolve ,
168
+ target : ts . ScriptTarget . ES6
168
169
} ;
169
170
}
170
171
@@ -186,7 +187,7 @@ class ProjectRunner extends RunnerBase {
186
187
function createCompilerHost ( ) : ts . CompilerHost {
187
188
return {
188
189
getSourceFile,
189
- getDefaultLibFilename : options => options . target === ts . ScriptTarget . ES6 ? "lib.es6.d.ts" : "lib.d.ts" ,
190
+ getDefaultLibFilename : options => Harness . Compiler . defaultLibFileName ,
190
191
writeFile,
191
192
getCurrentDirectory,
192
193
getCanonicalFileName : Harness . Compiler . getCanonicalFileName ,
Original file line number Diff line number Diff line change
1
+ error TS2318: Cannot find global type 'TemplateStringsArray'.
1
2
error TS2318: Cannot find global type 'String'.
2
3
error TS2318: Cannot find global type 'RegExp'.
3
4
error TS2318: Cannot find global type 'Object'.
@@ -9,6 +10,7 @@ error TS2318: Cannot find global type 'Array'.
9
10
test.ts(3,8): error TS2304: Cannot find name 'Array'.
10
11
11
12
13
+ !!! error TS2318: Cannot find global type 'TemplateStringsArray'.
12
14
!!! error TS2318: Cannot find global type 'String'.
13
15
!!! error TS2318: Cannot find global type 'RegExp'.
14
16
!!! error TS2318: Cannot find global type 'Object'.
Original file line number Diff line number Diff line change
1
+ error TS2318: Cannot find global type 'TemplateStringsArray'.
1
2
error TS2318: Cannot find global type 'String'.
2
3
error TS2318: Cannot find global type 'RegExp'.
3
4
error TS2318: Cannot find global type 'Object'.
@@ -9,6 +10,7 @@ error TS2318: Cannot find global type 'Array'.
9
10
test.ts(3,8): error TS2304: Cannot find name 'Array'.
10
11
11
12
13
+ !!! error TS2318: Cannot find global type 'TemplateStringsArray'.
12
14
!!! error TS2318: Cannot find global type 'String'.
13
15
!!! error TS2318: Cannot find global type 'RegExp'.
14
16
!!! error TS2318: Cannot find global type 'Object'.
You can’t perform that action at this time.
0 commit comments