Skip to content

Commit

Permalink
fix(matchers): fix broken matchers (jest and jasmine)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
johncrim committed Nov 26, 2024
1 parent bf51584 commit 94721d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/spectator/jest/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference types="jest" />
/// <reference path="./lib/matchers-types.ts" />
/// <reference path="./lib/matchers-types.ts" preserve="true" />
export * from './lib/dom-selectors';
export * from './lib/mock';
export * from './lib/spectator';
Expand Down
2 changes: 1 addition & 1 deletion projects/spectator/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="./lib/matchers-types.ts" />
/// <reference path="./lib/matchers-types.ts" preserve="true" />
export { Spectator } from './lib/spectator/spectator';
export { SpectatorOptions } from './lib/spectator/options';
export { createComponentFactory, SpectatorFactory, SpectatorOverrides } from './lib/spectator/create-factory';
Expand Down

0 comments on commit 94721d8

Please sign in to comment.