Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Framework / Build Tool Support #4

Open
1 of 14 tasks
guybedford opened this issue Apr 14, 2020 · 3 comments
Open
1 of 14 tasks

Test Framework / Build Tool Support #4

guybedford opened this issue Apr 14, 2020 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@guybedford
Copy link
Collaborator

guybedford commented Apr 14, 2020

The patterns encouraged by this package are awesome, but they are only as good as the tools that support them.

The use ofimport.meta.url in the analysis has limited support in build tools and test frameworks. For example in this project's own tests, import.meta.url can't be used due to the CommonJS conversion used in Ava. I thought it could be useful to create an issue to track support for popular test frameworks? Let me know if that sounds like a sensible approach.

Tools to Update

Feedback welcome if alternative approaches are preferable too - I don't want to make more work than necessary, but it does also seem a useful thing to do so far as it isn't too much effort to track these (and in theory the modules support naturally in these projects should align with these directions).

@developit
Copy link
Owner

Here's a quick Babel hack that should make it work in Webpack.

@developit developit pinned this issue Apr 17, 2020
@developit developit changed the title Tracking test framework / build tool support Test Framework / Build Tool Support Apr 17, 2020
@developit developit added the help wanted Extra attention is needed label Apr 17, 2020
@pedrorafa26
Copy link

Here's a quick Babel hack that should make it work in Webpack.

Hi I'm facing thi issue, but I don't know how to implement this Babel hack into my project, Could you help me with the implementation?

@erhant
Copy link

erhant commented May 4, 2023

I was trying to test a repo I had using Ava, one of the packages used web-worker deep within and Ava had an error with that. I migrated everything to Mocha, and it seems to work. Perhaps you may check the box for Mocha.

I'm using mocha@^10.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants