Skip to content

Commit 4f77b4d

Browse files
committed
Fix test harness
1 parent 2253688 commit 4f77b4d

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

src/harness/compilerImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ namespace compiler {
256256
if (compilerOptions.skipDefaultLibCheck === undefined) compilerOptions.skipDefaultLibCheck = true;
257257
if (compilerOptions.noErrorTruncation === undefined) compilerOptions.noErrorTruncation = true;
258258

259-
const preProgram = ts.createProgram(rootFiles || [], { ...compilerOptions, traceResolution: false }, host);
259+
const preProgram = ts.createProgram(rootFiles || [], { ...compilerOptions, configFile: compilerOptions.configFile, traceResolution: false }, host);
260260
const preErrors = ts.getPreEmitDiagnostics(preProgram);
261261

262262
const program = ts.createProgram(rootFiles || [], compilerOptions, host);

tests/baselines/reference/pathMappingBasedModuleResolution1_amd.errors.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
error TS-1: Pre-emit (1) and post-emit (2) diagnostic counts do not match! This can indicate that a semantic _error_ was added by the emit resolver - such an error may not be reflected on the command line or in the editor, but may be captured in a baseline here!
21
c:/root/tsconfig.json(5,17): error TS5089: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
32
c:/root/tsconfig.json(6,17): error TS5089: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
43

54

6-
!!! error TS-1: Pre-emit (1) and post-emit (2) diagnostic counts do not match! This can indicate that a semantic _error_ was added by the emit resolver - such an error may not be reflected on the command line or in the editor, but may be captured in a baseline here!
7-
!!! related TS-1: The excess diagnostics are:
8-
!!! related TS5089 c:/root/tsconfig.json:5:17: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
9-
!!! related TS5089 c:/root/tsconfig.json:6:17: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
105
==== c:/root/tsconfig.json (2 errors) ====
116
{
127
"compilerOptions": {

tests/baselines/reference/pathMappingBasedModuleResolution1_node.errors.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
error TS-1: Pre-emit (1) and post-emit (2) diagnostic counts do not match! This can indicate that a semantic _error_ was added by the emit resolver - such an error may not be reflected on the command line or in the editor, but may be captured in a baseline here!
21
c:/root/tsconfig.json(5,17): error TS5089: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
32
c:/root/tsconfig.json(6,17): error TS5089: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
43

54

6-
!!! error TS-1: Pre-emit (1) and post-emit (2) diagnostic counts do not match! This can indicate that a semantic _error_ was added by the emit resolver - such an error may not be reflected on the command line or in the editor, but may be captured in a baseline here!
7-
!!! related TS-1: The excess diagnostics are:
8-
!!! related TS5089 c:/root/tsconfig.json:5:17: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
9-
!!! related TS5089 c:/root/tsconfig.json:6:17: Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?
105
==== c:/root/tsconfig.json (2 errors) ====
116
{
127
"compilerOptions": {

0 commit comments

Comments
 (0)