Skip to content

Commit e04f4f7

Browse files
committed
refactor: Simplify Exports from matchers.js
This makes the code easier to maintain as more exports are added.
1 parent 8c3f622 commit e04f4f7

File tree

1 file changed

+25
-55
lines changed

1 file changed

+25
-55
lines changed

src/matchers.js

+25-55
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,25 @@
1-
import {toBeInTheDOM} from './to-be-in-the-dom'
2-
import {toBeInTheDocument} from './to-be-in-the-document'
3-
import {toBeEmpty} from './to-be-empty'
4-
import {toBeEmptyDOMElement} from './to-be-empty-dom-element'
5-
import {toContainElement} from './to-contain-element'
6-
import {toContainHTML} from './to-contain-html'
7-
import {toHaveTextContent} from './to-have-text-content'
8-
import {toHaveAccessibleDescription} from './to-have-accessible-description'
9-
import {toHaveAccessibleErrorMessage} from './to-have-accessible-errormessage'
10-
import {toHaveAccessibleName} from './to-have-accessible-name'
11-
import {toHaveAttribute} from './to-have-attribute'
12-
import {toHaveClass} from './to-have-class'
13-
import {toHaveStyle} from './to-have-style'
14-
import {toHaveFocus} from './to-have-focus'
15-
import {toHaveFormValues} from './to-have-form-values'
16-
import {toBeVisible} from './to-be-visible'
17-
import {toBeDisabled, toBeEnabled} from './to-be-disabled'
18-
import {toBeRequired} from './to-be-required'
19-
import {toBeInvalid, toBeValid} from './to-be-invalid'
20-
import {toHaveValue} from './to-have-value'
21-
import {toHaveDisplayValue} from './to-have-display-value'
22-
import {toBeChecked} from './to-be-checked'
23-
import {toBePartiallyChecked} from './to-be-partially-checked'
24-
import {toHaveDescription} from './to-have-description'
25-
import {toHaveErrorMessage} from './to-have-errormessage'
26-
27-
export {
28-
toBeInTheDOM,
29-
toBeInTheDocument,
30-
toBeEmpty,
31-
toBeEmptyDOMElement,
32-
toContainElement,
33-
toContainHTML,
34-
toHaveTextContent,
35-
toHaveAccessibleDescription,
36-
toHaveAccessibleErrorMessage,
37-
toHaveAccessibleName,
38-
toHaveAttribute,
39-
toHaveClass,
40-
toHaveStyle,
41-
toHaveFocus,
42-
toHaveFormValues,
43-
toBeVisible,
44-
toBeDisabled,
45-
toBeEnabled,
46-
toBeRequired,
47-
toBeInvalid,
48-
toBeValid,
49-
toHaveValue,
50-
toHaveDisplayValue,
51-
toBeChecked,
52-
toBePartiallyChecked,
53-
toHaveDescription,
54-
toHaveErrorMessage,
55-
}
1+
export {toBeInTheDOM} from './to-be-in-the-dom'
2+
export {toBeInTheDocument} from './to-be-in-the-document'
3+
export {toBeEmpty} from './to-be-empty'
4+
export {toBeEmptyDOMElement} from './to-be-empty-dom-element'
5+
export {toContainElement} from './to-contain-element'
6+
export {toContainHTML} from './to-contain-html'
7+
export {toHaveTextContent} from './to-have-text-content'
8+
export {toHaveAccessibleDescription} from './to-have-accessible-description'
9+
export {toHaveAccessibleErrorMessage} from './to-have-accessible-errormessage'
10+
export {toHaveAccessibleName} from './to-have-accessible-name'
11+
export {toHaveAttribute} from './to-have-attribute'
12+
export {toHaveClass} from './to-have-class'
13+
export {toHaveStyle} from './to-have-style'
14+
export {toHaveFocus} from './to-have-focus'
15+
export {toHaveFormValues} from './to-have-form-values'
16+
export {toBeVisible} from './to-be-visible'
17+
export {toBeDisabled, toBeEnabled} from './to-be-disabled'
18+
export {toBeRequired} from './to-be-required'
19+
export {toBeInvalid, toBeValid} from './to-be-invalid'
20+
export {toHaveValue} from './to-have-value'
21+
export {toHaveDisplayValue} from './to-have-display-value'
22+
export {toBeChecked} from './to-be-checked'
23+
export {toBePartiallyChecked} from './to-be-partially-checked'
24+
export {toHaveDescription} from './to-have-description'
25+
export {toHaveErrorMessage} from './to-have-errormessage'

0 commit comments

Comments
 (0)