File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { createHash } from 'node:crypto';
22
33import ts from 'typescript' ;
44
5- import { collectSoundscriptRootNames , loadConfig , type RuntimeTarget } from '../config.ts' ;
5+ import { collectSoundscriptRootNames , loadConfig , type RuntimeTarget } from '../project/ config.ts' ;
66import { emitProjectedDeclarations } from '../frontend/project_frontend.ts' ;
77import {
88 basename ,
@@ -161,7 +161,7 @@ function createSoundscriptRootDiscoverySignature(
161161function createConfigDiagnosticsSignature (
162162 loadedConfig : ReturnType < typeof loadConfig > ,
163163) : string {
164- return loadedConfig . diagnostics . map ( ( diagnostic ) =>
164+ return loadedConfig . diagnostics . map ( ( diagnostic : ts . Diagnostic ) =>
165165 [
166166 diagnostic . code ,
167167 String ( diagnostic . category ) ,
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import { assert, assertEquals } from '@std/assert';
22import { dirname , join } from '@std/path' ;
33
44import { resolveCheckerCacheDirectory } from './checker/checker_cache.ts' ;
5- import { runProgram } from './run_program.ts' ;
5+ import type { MergedDiagnostic } from './checker/diagnostics.ts' ;
6+ import { runProgram } from './cli/run_program.ts' ;
67import {
78 maybeNormalizeTsconfigForInstalledStdlib ,
89 writeInstalledStdlibPackage ,
@@ -137,7 +138,7 @@ Deno.test('runProgram invalidates cached checker results when a tracked file cha
137138 projectPath,
138139 workingDirectory : tempDirectory ,
139140 } ) ;
140- assert ( firstResult . diagnostics . some ( ( diagnostic ) => diagnostic . code === 'TS2322' ) ) ;
141+ assert ( firstResult . diagnostics . some ( ( diagnostic : MergedDiagnostic ) => diagnostic . code === 'TS2322' ) ) ;
141142
142143 await Deno . writeTextFile ( sourcePath , 'export const broken: number = 1;\n' ) ;
143144
@@ -405,7 +406,7 @@ Deno.test('runProgram refreshes dependent .sts files when a changed dependency s
405406 } ) ;
406407
407408 assertEquals ( secondResult . exitCode , 1 ) ;
408- assert ( secondResult . diagnostics . some ( ( diagnostic ) =>
409+ assert ( secondResult . diagnostics . some ( ( diagnostic : MergedDiagnostic ) =>
409410 diagnostic . filePath === dependentFilePath && diagnostic . code === 'TS2345'
410411 ) ) ;
411412} ) ;
You can’t perform that action at this time.
0 commit comments