mfrachet / cypress-audit

⚡ Run Lighthouse and Pa11y audits directly in your E2E test suites
https://mfrachet.github.io/cypress-audit/
MIT License
352 stars 43 forks source link

pa11y/cypress integration with typescript #226

Open Harvo09 opened 1 year ago

Harvo09 commented 1 year ago

I have been asked to add pa11y to our existing cypress regression pack. I got a proof of concept project working installing and setting up the config and writing one tests, this worked out of the box as expected. However as I try to transpose the files into our existing project I am getting an error with invalid URLs. The difference is my POC was in the .js format but our main project is written in .ts. So the test file, config and command files are all .ts as opposed to .js. pa11y seems to be getting called....

pa11y_Cypress_error