Skip to content

Commit

Permalink
fix: add toBeOnTheScreen to exports (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjastrzebski authored Jan 6, 2023
1 parent 49c3bbd commit e815954
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
12 changes: 6 additions & 6 deletions src/extend-expect.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import { toBeDisabled, toBeEnabled } from './to-be-disabled';
import { toBeEmptyElement, toBeEmpty } from './to-be-empty-element';
import { toBeOnTheScreen } from './to-be-on-the-screen';
import { toBeVisible } from './to-be-visible';
import { toContainElement } from './to-contain-element';
import { toHaveAccessibilityState } from './to-have-accessibility-state';
import { toHaveAccessibilityValue } from './to-have-accessibility-value';
import { toHaveProp } from './to-have-prop';
import { toHaveStyle } from './to-have-style';
import { toHaveTextContent } from './to-have-text-content';
import { toBeVisible } from './to-be-visible';
import { toHaveAccessibilityState } from './to-have-accessibility-state';
import { toHaveAccessibilityValue } from './to-have-accessibility-value';

expect.extend({
toBeDisabled,
toBeEnabled,
toBeEmptyElement,
toBeEmpty, // Deprecated
toBeOnTheScreen,
toBeVisible,
toContainElement,
toHaveAccessibilityState,
toHaveAccessibilityValue,
toHaveProp,
toHaveStyle,
toHaveTextContent,
toBeVisible,
toHaveAccessibilityState,
toHaveAccessibilityValue,
});
19 changes: 10 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
export * from './to-be-disabled';
export * from './to-be-empty-element';
export * from './to-be-visible';
export * from './to-contain-element';
export * from './to-have-accessibility-state';
export * from './to-have-accessibility-value';
export * from './to-have-prop';
export * from './to-have-style';
export * from './to-have-text-content';
export { toBeDisabled, toBeEnabled } from './to-be-disabled';
export { toBeEmptyElement, toBeEmpty } from './to-be-empty-element';
export { toBeOnTheScreen } from './to-be-on-the-screen';
export { toBeVisible } from './to-be-visible';
export { toContainElement } from './to-contain-element';
export { toHaveAccessibilityState } from './to-have-accessibility-state';
export { toHaveAccessibilityValue } from './to-have-accessibility-value';
export { toHaveProp } from './to-have-prop';
export { toHaveStyle } from './to-have-style';
export { toHaveTextContent } from './to-have-text-content';

0 comments on commit e815954

Please sign in to comment.