Skip to content

Commit 2796f18

Browse files
Jonathan MeierthePunderWoman
authored andcommitted
test: set the noCheck TS compiler option in declaration-only emission compliance tests (angular#61470)
No type-checking is performed in declaration-only emission mode so we should explicitly disable it in the compliance tests. This also aligns the compiler configuration with the setup used in `packages/compiler-cli/test/ngtsc/declaration_only_emission_spec.ts`: https://github.com/angular/angular/blob/2b3c89dba228f55e90e298e6a1fca5850b7f40eb/packages/compiler-cli/test/ngtsc/declaration_only_emission_spec.ts#L31. PR Close angular#61470
1 parent fb0f5aa commit 2796f18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/compiler-cli/test/compliance/declaration-only/declaration_only_emit_spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function emitDeclarationOnlyTest(fs: FileSystem, test: ComplianceTest): CompileR
4040
{
4141
...test.compilerOptions,
4242
emitDeclarationOnly: true,
43+
noCheck: true,
4344
},
4445
{
4546
...test.angularCompilerOptions,

0 commit comments

Comments
 (0)