Add support for eager via the { eager: true } argument to import.meta.glob in Jest #51
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What:
Addresses #42, and #43 (comment)
Why:
![image](https://private-user-images.githubusercontent.com/30227910/292811696-4ca9edc2-a402-47be-aba2-46d3ec1a04a9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjI2MjcsIm5iZiI6MTczOTMyMjMyNywicGF0aCI6Ii8zMDIyNzkxMC8yOTI4MTE2OTYtNGNhOWVkYzItYTQwMi00N2JlLWFiYTItNDZkM2VjMWEwNGE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAxMDUyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmY2Q4ODE4M2Q5OTgwZjlmN2E3NDM5NTkzM2M0ODQ1NmYzYzA3NjMxOThlNjEzODNjNGY2Y2U2ODQzNDFmMGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8y8OQmGHVb5miaYA6bVXJzVAKQVLRzkVWe4yDlnbwbA)
import.meta.globEager is deprecated, use import.meta.glob instead.
But the previous method was use
import declarative
so it's make Jest failure atimport * as glob__glob__
How:
Change
import statement
to require as the implement stuffs in globEagerthen result is
Also tested-well in my own repo, and everything is fine
![image](https://private-user-images.githubusercontent.com/30227910/292812040-c12ed320-64eb-4272-9ac6-4b8e976fa23d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjI2MjcsIm5iZiI6MTczOTMyMjMyNywicGF0aCI6Ii8zMDIyNzkxMC8yOTI4MTIwNDAtYzEyZWQzMjAtNjRlYi00MjcyLTlhYzYtNGI4ZTk3NmZhMjNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDAxMDUyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTExNDFjMGM4MGU5OWY5MWRkZTllYWM0ZDZjMTU3NDNkNGMwNDQ5NjAwMTA1OGE1Y2M5YjZlYzNlOGQ4MDg1YmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HPvquVrraMZA3WE3fz4Ku5iYBg9APLy1k2tdez_FHtY)
Checklist: