Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Vitest bails with an odd "TypeError: re.test is not a function" #146

Answered by WebMechanic
WebMechanic asked this question in Q&A
Discussion options

You must be logged in to vote

I guess I found the source...

When I copied the various config setting over, it broke with Vitest's css directive being a glob pattern and not a RexEg -- hence the not a function failure...

I somehow overlooked the fact that your components also contain "style" elements, which is why the tests for our components that don't have any also failed.

Thanks & have a nice day.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@WebMechanic
Comment options

@AustinGil
Comment options

@WebMechanic
Comment options

@AustinGil
Comment options

Comment options

You must be logged in to vote
1 reply
@AustinGil
Comment options

Answer selected by WebMechanic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants