NickColley / jest-axe

Custom Jest matcher for aXe for testing accessibility ♿️🃏
MIT License
1.06k stars 54 forks source link

fix: unpin dependencies, mark axe-core as peer #223

Closed noahnu closed 2 years ago

noahnu commented 2 years ago

Changes


@nickcolley If you're open to it, I have some other improvements/general maintenance I can put up PRs for. I can keep the PRs small and focused if you'd like. Right now the TypeScript types live in DefinitelyTyped. Would you be open to a PR which migrates this project to TypeScript? and if not that, what about maintaining the types in this repository in a separate declaration file?

NickColley commented 2 years ago

The only proposal I that I will consider is the Peer Dependency, is this something that impacts only Yarn users though?

noahnu commented 2 years ago

It might impact pnpm as well, I'm not sure since I don't use pnpm. I imagine it prints warnings in npm. Definitely impacts Yarn though.

I can revert the lodash change, it was a bit opportunistic. What's the reasoning behind pinning the dependencies though?

NickColley commented 2 years ago

Sorry I failed to mention that. axe-core can change it's output and break builds even with semver so that definitely needs to be pinned. I think when I did that I just did a blanket pin to make builds more deterministic but I'd be open to changing the others if you think the value is there just not axe-core.

noahnu commented 2 years ago

I reverted the axe-core semver change and reverted the switch to the general lodash package.

noahnu commented 2 years ago

I noticed axe-core requires node >12, so jest-axe's min node version could probably be raised

NickColley commented 2 years ago

Updated dependencies recently, keeping it simple for now.