ThreadSky
About ThreadSky
Log In
continuumdesign.net
•
19 days ago
https://angelika.me/2025/02/01/astro-component-unit-tests/
Comments
Log in
with your Bluesky account to leave a comment
[–]
continuumdesign.net
•
19 days ago
@angelikatyborska.bsky.social I liked your article on setting up unit tests for Astro.
I’m having quite a time unit testing a custom hero component that uses the getImage( ) helper. Your ideas might just be what I’m looking for.
0
1
reply
[–]
angelikatyborska.bsky.social
•
18 days ago
Thank you!
Unfortunately I have never used Astro's getImage() so I am not aware of the challenges it poses for unit testing.
0
1
reply
[–]
continuumdesign.net
•
18 days ago
I woke up this morning thinking it’s not the helper but my environment. I haven’t added JSDom or happy-dom so it’s trying to render in Node.
0
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments
I’m having quite a time unit testing a custom hero component that uses the getImage( ) helper. Your ideas might just be what I’m looking for.
Unfortunately I have never used Astro's getImage() so I am not aware of the challenges it poses for unit testing.