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

[0.10.0] Promise.all(()=>import()) issues with Jest #746

Open
emmercm opened this issue Sep 9, 2024 · 1 comment
Open

[0.10.0] Promise.all(()=>import()) issues with Jest #746

emmercm opened this issue Sep 9, 2024 · 1 comment

Comments

@emmercm
Copy link

emmercm commented Sep 9, 2024

Jest doesn't play well with the concurrent imports happening here:

const rulesExport = await Promise.all(rules_path.map((path) => import(pathToFileURL(path).toString())));

See jestjs/jest#11434. The issue seems to be with Node.js, but I don't think there's any workaround until the root issue is resolved.

If there's any way to avoid the async imports that would be great, otherwise I'll lock to v0.9.

@KamiKillertO
Copy link
Collaborator

Sorry but what's the issue on your side?
Are you using LintHTML in a testing context?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants