Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor: finishing touches
  • Loading branch information
mdjastrzebski committed Sep 8, 2023
commit 324fb1ee6a7357cc7aa7b68ec9894170686a55cc
2 changes: 1 addition & 1 deletion src/matchers/extend-expect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export interface JestNativeMatchers<R> {
toBeEmptyElement(): R;
toBeEnabled(): R;
toBePartiallyChecked(): R;
toBeSelected(): R;
toBeVisible(): R;
toHaveDisplayValue(expectedValue: TextMatch, options?: TextMatchOptions): R;
toHaveProp(name: string, expectedValue?: unknown): R;
toHaveTextContent(expectedText: TextMatch, options?: TextMatchOptions): R;
toBeSelected(): R;
}

// Implicit Jest global `expect`.
Expand Down
4 changes: 2 additions & 2 deletions src/matchers/extend-expect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { toBeChecked } from './to-be-checked';
import { toBeDisabled, toBeEnabled } from './to-be-disabled';
import { toBeEmptyElement } from './to-be-empty-element';
import { toBePartiallyChecked } from './to-be-partially-checked';
import { toBeSelected } from './to-be-selected';
import { toBeVisible } from './to-be-visible';
import { toHaveDisplayValue } from './to-have-display-value';
import { toHaveProp } from './to-have-prop';
import { toHaveTextContent } from './to-have-text-content';
import { toBeSelected } from './to-be-selected';

expect.extend({
toBeOnTheScreen,
Expand All @@ -18,9 +18,9 @@ expect.extend({
toBeEmptyElement,
toBeEnabled,
toBePartiallyChecked,
toBeSelected,
toBeVisible,
toHaveDisplayValue,
toHaveProp,
toHaveTextContent,
toBeSelected,
});