From 94721d801193f9bf996d09b60b9a5591594d36dd Mon Sep 17 00:00:00 2001 From: John Crim Date: Mon, 25 Nov 2024 16:44:48 -0800 Subject: [PATCH] fix(matchers): fix broken matchers (jest and jasmine) Matchers were broken by typescript upgrade: As of TypeScript 5.5, the compiler no longer emits triple-slash directives to the output files by default. However, there is a way to preserve these directives in specific cases: Use `preserve="true"` attribute in your triple-slash directive. --- projects/spectator/jest/src/public_api.ts | 2 +- projects/spectator/src/public_api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/spectator/jest/src/public_api.ts b/projects/spectator/jest/src/public_api.ts index 4e3b4a8e..6e41f549 100644 --- a/projects/spectator/jest/src/public_api.ts +++ b/projects/spectator/jest/src/public_api.ts @@ -1,5 +1,5 @@ /// -/// +/// export * from './lib/dom-selectors'; export * from './lib/mock'; export * from './lib/spectator'; diff --git a/projects/spectator/src/public_api.ts b/projects/spectator/src/public_api.ts index 92f32abc..93ec589f 100644 --- a/projects/spectator/src/public_api.ts +++ b/projects/spectator/src/public_api.ts @@ -1,4 +1,4 @@ -/// +/// export { Spectator } from './lib/spectator/spectator'; export { SpectatorOptions } from './lib/spectator/options'; export { createComponentFactory, SpectatorFactory, SpectatorOverrides } from './lib/spectator/create-factory';