dequelabs / axe-core-npm

Mozilla Public License 2.0
598 stars 68 forks source link

`TypeError: run is not a function` when using v4.9.1 #1059

Closed acelaya closed 4 months ago

acelaya commented 4 months ago

Product

cli

Product Version

4.9.1

Latest Version

Issue Description

Expectation

Today I got dependabot PRs in a few repositories, to upgrade from v4.9.0 to v4.9.1, and they all fail with the same error.

With v4.9.0 everything works as expected.

Actual

When running tests, I get TypeError: run is not a function

How to Reproduce

It happens just by updating to v4.9.1, and trying to import and then use the run function, but you can see how I use it here https://github.com/shlinkio/shlink-frontend-kit/blob/86ad2eb395d35d57225cb0e4527282435efa6955/test/__helpers__/accessibility.ts

Additional context

You can see an example of the error here https://github.com/shlinkio/shlink-frontend-kit/actions/runs/9041997260/job/24848007149#step:5:59

Also, I'm not sure if it's related, but I use vite, vitest and react-testing-library

acelaya commented 4 months ago

Just realized I created this issue in the wrong repository. Closing in favor of https://github.com/dequelabs/axe-core/issues/4458

padmavemulapati commented 3 months ago

Tracking in axe-core repo