-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: put all internal function exports into same file (#3677)
- Loading branch information
Showing
4 changed files
with
82 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
This file only exists to expose inner axe-core functionality for testing prior to being able to support ES6 imports in our tests. | ||
TODO: remove `_thisWillBeDeletedDoNotUse` once we can support imports in our tests | ||
*/ | ||
import Audit from './base/audit'; | ||
import CheckResult from './base/check-result'; | ||
import Check from './base/check'; | ||
import Context from './base/context'; | ||
import metadataFunctionMap from './base/metadata-function-map'; | ||
import RuleResult from './base/rule-result'; | ||
import Rule from './base/rule'; | ||
|
||
import { reporters } from './public/reporter'; | ||
|
||
import failureSummary from './reporters/helpers/failure-summary'; | ||
import incompleteFallbackMessage from './reporters/helpers/incomplete-fallback-msg'; | ||
import processAggregate from './reporters/helpers/process-aggregate'; | ||
|
||
import { setDefaultFrameMessenger } from './utils/frame-messenger'; | ||
import { | ||
cacheNodeSelectors, | ||
getNodesMatchingExpression | ||
} from './utils/selector-cache'; | ||
import { convertSelector } from './utils/matches'; | ||
|
||
import { | ||
nativelyHidden, | ||
displayHidden, | ||
visibilityHidden, | ||
ariaHidden, | ||
opacityHidden, | ||
scrollHidden, | ||
overflowHidden, | ||
clipHidden, | ||
areaHidden | ||
} from '../commons/dom/visibility-methods'; | ||
|
||
const _thisWillBeDeletedDoNotUse = { | ||
base: { | ||
Audit, | ||
CheckResult, | ||
Check, | ||
Context, | ||
RuleResult, | ||
Rule, | ||
metadataFunctionMap | ||
}, | ||
public: { | ||
reporters | ||
}, | ||
helpers: { | ||
failureSummary, | ||
incompleteFallbackMessage, | ||
processAggregate | ||
}, | ||
utils: { | ||
setDefaultFrameMessenger, | ||
cacheNodeSelectors, | ||
getNodesMatchingExpression, | ||
convertSelector | ||
}, | ||
commons: { | ||
dom: { | ||
nativelyHidden, | ||
displayHidden, | ||
visibilityHidden, | ||
ariaHidden, | ||
opacityHidden, | ||
scrollHidden, | ||
overflowHidden, | ||
clipHidden, | ||
areaHidden | ||
} | ||
} | ||
}; | ||
|
||
export default _thisWillBeDeletedDoNotUse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters