From ffbdc871fb6691ccf3924541650084b9d0ef6cf3 Mon Sep 17 00:00:00 2001 From: Maciej Jastrzebski Date: Fri, 6 Jan 2023 11:17:55 +0100 Subject: [PATCH] fix: add toBeOnTheScreen to exports --- src/extend-expect.ts | 12 ++++++------ src/index.ts | 19 ++++++++++--------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/extend-expect.ts b/src/extend-expect.ts index 65e14e4..6b452c0 100644 --- a/src/extend-expect.ts +++ b/src/extend-expect.ts @@ -1,13 +1,13 @@ 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, @@ -15,11 +15,11 @@ expect.extend({ toBeEmptyElement, toBeEmpty, // Deprecated toBeOnTheScreen, + toBeVisible, toContainElement, + toHaveAccessibilityState, + toHaveAccessibilityValue, toHaveProp, toHaveStyle, toHaveTextContent, - toBeVisible, - toHaveAccessibilityState, - toHaveAccessibilityValue, }); diff --git a/src/index.ts b/src/index.ts index 8d73242..18d7f06 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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';