Open
Description
It looks like everything is in a single file we should separate them out into directory structures similar to the other packages in the repo. I think this should help with development for others moving forwards.
.
├── src
│ └── lib
├── test
├── cypress
└── README.md
Also the reactAxe()
function should take destructures args instead (this would be a breaking change)
interface ReactAxeParams {
React: typeof React
ReactDOM: typeof ReactDOM
timeout: number
conf: ReactSpec
context?: ElementContext
}
const reactAxe = async ({
React,
ReactDOM,
timeout,
conf = {},
context
}: ReactAxeParams) : Promise<void> { }