Skip to content

Commit

Permalink
refactor: Simplify Exports from matchers.js
Browse files Browse the repository at this point in the history
This makes the code easier to maintain as more
exports are added.
  • Loading branch information
ITenthusiasm committed Jul 18, 2023
1 parent 2f80dd5 commit ea25301
Showing 1 changed file with 25 additions and 55 deletions.
80 changes: 25 additions & 55 deletions src/matchers.js
Original file line number Diff line number Diff line change
@@ -1,55 +1,25 @@
import {toBeInTheDOM} from './to-be-in-the-dom'
import {toBeInTheDocument} from './to-be-in-the-document'
import {toBeEmpty} from './to-be-empty'
import {toBeEmptyDOMElement} from './to-be-empty-dom-element'
import {toContainElement} from './to-contain-element'
import {toContainHTML} from './to-contain-html'
import {toHaveTextContent} from './to-have-text-content'
import {toHaveAccessibleDescription} from './to-have-accessible-description'
import {toHaveAccessibleErrorMessage} from './to-have-accessible-errormessage'
import {toHaveAccessibleName} from './to-have-accessible-name'
import {toHaveAttribute} from './to-have-attribute'
import {toHaveClass} from './to-have-class'
import {toHaveStyle} from './to-have-style'
import {toHaveFocus} from './to-have-focus'
import {toHaveFormValues} from './to-have-form-values'
import {toBeVisible} from './to-be-visible'
import {toBeDisabled, toBeEnabled} from './to-be-disabled'
import {toBeRequired} from './to-be-required'
import {toBeInvalid, toBeValid} from './to-be-invalid'
import {toHaveValue} from './to-have-value'
import {toHaveDisplayValue} from './to-have-display-value'
import {toBeChecked} from './to-be-checked'
import {toBePartiallyChecked} from './to-be-partially-checked'
import {toHaveDescription} from './to-have-description'
import {toHaveErrorMessage} from './to-have-errormessage'

export {
toBeInTheDOM,
toBeInTheDocument,
toBeEmpty,
toBeEmptyDOMElement,
toContainElement,
toContainHTML,
toHaveTextContent,
toHaveAccessibleDescription,
toHaveAccessibleErrorMessage,
toHaveAccessibleName,
toHaveAttribute,
toHaveClass,
toHaveStyle,
toHaveFocus,
toHaveFormValues,
toBeVisible,
toBeDisabled,
toBeEnabled,
toBeRequired,
toBeInvalid,
toBeValid,
toHaveValue,
toHaveDisplayValue,
toBeChecked,
toBePartiallyChecked,
toHaveDescription,
toHaveErrorMessage,
}
export {toBeInTheDOM} from './to-be-in-the-dom'
export {toBeInTheDocument} from './to-be-in-the-document'
export {toBeEmpty} from './to-be-empty'
export {toBeEmptyDOMElement} from './to-be-empty-dom-element'
export {toContainElement} from './to-contain-element'
export {toContainHTML} from './to-contain-html'
export {toHaveTextContent} from './to-have-text-content'
export {toHaveAccessibleDescription} from './to-have-accessible-description'
export {toHaveAccessibleErrorMessage} from './to-have-accessible-errormessage'
export {toHaveAccessibleName} from './to-have-accessible-name'
export {toHaveAttribute} from './to-have-attribute'
export {toHaveClass} from './to-have-class'
export {toHaveStyle} from './to-have-style'
export {toHaveFocus} from './to-have-focus'
export {toHaveFormValues} from './to-have-form-values'
export {toBeVisible} from './to-be-visible'
export {toBeDisabled, toBeEnabled} from './to-be-disabled'
export {toBeRequired} from './to-be-required'
export {toBeInvalid, toBeValid} from './to-be-invalid'
export {toHaveValue} from './to-have-value'
export {toHaveDisplayValue} from './to-have-display-value'
export {toBeChecked} from './to-be-checked'
export {toBePartiallyChecked} from './to-be-partially-checked'
export {toHaveDescription} from './to-have-description'
export {toHaveErrorMessage} from './to-have-errormessage'

0 comments on commit ea25301

Please sign in to comment.