Sign in

Matan Borenkraout 🥬

@matanbobi.dev
307 followers 82 following 83 posts

Senior SE @Microsoft • Testing Library maintainer • Creating better software, one word at a time. Be kind!

PostsRepliesMedia
Matan Borenkraout 🥬 @matanbobi.dev · 26/02/2025
Nooooo!!! 🥹🥹🥹
010
Matan Borenkraout 🥬 @matanbobi.dev · 15/02/2025
If your talk title has the word harnessing, that’s an AI generated title and we know it.
010
Reposted by Matan Borenkraout 🥬
Vitest @vitest.dev · 04/02/2025
We've released patches for a critical security vulnerability. We strongly encourage projects to upgrade to versions 1.6.1, 2.1.9, or 3.0.5 as soon as possible.
github.com
Remote Code Execution when accessing a malicious website while Vitest API server is listening
### Summary Arbitrary remote Code Execution when accessing a malicious website while Vitest API server is listening by Cross-site WebSocket hijacking (CSWSH) attacks. ### Details When [`api` o...
110227
Matan Borenkraout 🥬 @matanbobi.dev · 24/01/2025
I’ve published this here a while ago, unfortunately it probably got lost in the ocean of mentions and was unable to get someone to look at it… bsky.app/profile/mata...
030
Matan Borenkraout 🥬 @matanbobi.dev · 18/01/2025
I had a Garmin watch before, I liked it but it was quite ugly and didn’t have AMOLED.. Mow the Garmin watches cost so much
100
Matan Borenkraout 🥬 @matanbobi.dev · 18/01/2025
I’m tired of my Apple Watch.. any recommendations for a smart watch that is both not too big and can provide useful training data?
110
Matan Borenkraout 🥬 @matanbobi.dev · 30/12/2024
Just as the bluesky handle
020
Matan Borenkraout 🥬 @matanbobi.dev · 30/12/2024
Bluesky just made me realize how many domains engineers have 😅
130
Reposted by Matan Borenkraout 🥬
Testing Library @testing-library.com · 30/12/2024
Hello everyone 👋
0214
Matan Borenkraout 🥬 @matanbobi.dev · 29/12/2024
Test failures are reproducing on main too and are unrelated to my changes (I tried understanding what's happening there but I'm not too familiar with the codebase and want to unblock users) github.com/facebook/cre...
github.com
chore: upgrade RTL version to avoid peer-deps mismatch by MatanBobi · Pull Request #13738 · facebook/create-react-app
Resolves #13721 This PR upgrades the installed version of RTL to resolve the peer deps issue. It also installs DTL because RTL version 16 requires DTL to be installed.
000
Matan Borenkraout 🥬 @matanbobi.dev · 29/12/2024
Hi @ricky.fm, @danabra.mov, I know CRA is deprecated but since the release of React 19, it now breaks installation because RTL's version is expecting peer dep for React 18. I've created this PR to update the RTL version according to our latest recommendations. Any chance to get your assistance?
112
Matan Borenkraout 🥬 @matanbobi.dev · 29/12/2024
Wdym? It doesn’t really learn based on your usage, just uses the open files as context.
100
Matan Borenkraout 🥬 @matanbobi.dev · 29/12/2024
Oh man why is my face all over this PR? 🤦‍♂️
000
Matan Borenkraout 🥬 @matanbobi.dev · 29/12/2024
This is the test: github.com/vitest-dev/v... Thanks!
github.com
feat: support async act by MatanBobi · Pull Request #10 · vitest-dev/vitest-browser-react
Resolves #9 Still need to add a test for a suspended component, will work on it soon. Test added.
100
Matan Borenkraout 🥬 @matanbobi.dev · 28/12/2024
Or if I’m testing something that is entirely a react implementation detail that shouldn’t concern vitest-browser-react while using await act. And thanks for the reply, I appreciate it.
100
Matan Borenkraout 🥬 @matanbobi.dev · 28/12/2024
The behavior is inconsistent. If I simulate a promise that takes 1000ms to resolve it will show the fallback and if my promise takes 300ms it doesn’t show the fallback and just waits for the content to appear. My question is if there’s a threshold for showing the fallback on the client side
100
Matan Borenkraout 🥬 @matanbobi.dev · 27/12/2024
Code completions are highly affected from the open tabs, did you have something open? Or else it probably won’t know the styling.. Or is that something like writing a comment showing what you want to achieve and copilot not doing the work?
100
Matan Borenkraout 🥬 @matanbobi.dev · 27/12/2024
AFAIU, sync external store isn’t something they want to push, just a bandaid to not break the ecosystem.. Any mutation to a sync external store cannot be marked as non blocking and therefor don’t fit to the concurrent rendering model.
100
Matan Borenkraout 🥬 @matanbobi.dev · 27/12/2024
What do you call failure? What are you experiencing?
100
Matan Borenkraout 🥬 @matanbobi.dev · 27/12/2024
Is there any reference you can point me to? Thanks!
100
Matan Borenkraout 🥬 @matanbobi.dev · 27/12/2024
Hi @ricky.fm, @danabra.mov! I'm trying to migrate vitest-browser-react to use the new `await act` approach. I have a test where I try to assert a suspended component shows fallback and then the content when it's ready. I remember reading there's a threshold for showing fallback but couldn't find it.
100
Matan Borenkraout 🥬 @matanbobi.dev · 26/12/2024
Bummer, hope to see you next time!
000
Matan Borenkraout 🥬 @matanbobi.dev · 26/12/2024
@gil.tayar.org on stage in the JavaScript IL meetup!
281
Matan Borenkraout 🥬 @matanbobi.dev · 14/12/2024
Don't you just hate debugging a dropdown that hides once you focus out?! Chrome DevTools to the rescue! Just toggle the "Emulate a focused page" checkbox - and you're good to go 🔥
010
Matan Borenkraout 🥬 @matanbobi.dev · 10/12/2024
🎯🎯🎯 It says "Turn on all emails" 🤦‍♂️
110
Matan Borenkraout 🥬 @matanbobi.dev · 10/12/2024
Let's play a guessing game, you're seeing this blue button at the bottom of an unsubscribe page, what does it do?
130
Matan Borenkraout 🥬 @matanbobi.dev · 05/12/2024
I agree, though I believe that it also has an affect on the core package. This was just me giving a quick look, but you’re right.
000
Matan Borenkraout 🥬 @matanbobi.dev · 05/12/2024
19 is still bigger as you thought :)
110
Matan Borenkraout 🥬 @matanbobi.dev · 05/12/2024
Strongly agree here. Using default exports also make refactoring harder since people can rename the imported module whatever they want.
030
Matan Borenkraout 🥬 @matanbobi.dev · 01/12/2024
It does help :) thanks Artem
010
Matan Borenkraout 🥬 @matanbobi.dev · 01/12/2024
If you're looking for some development vibe music, this is the playlist I made for when I try to get deep focus. open.spotify.com/playlist/7HV...
open.spotify.com
Programming & Dev
000
Matan Borenkraout 🥬 @matanbobi.dev · 01/12/2024
Man! I had a dream a couple of months ago of an entire TV series. I wrote the main points when I woke up and I’m still trying to figure out how to make more out of it
210
Matan Borenkraout 🥬 @matanbobi.dev · 27/11/2024
Thanks man!
000
Matan Borenkraout 🥬 @matanbobi.dev · 27/11/2024
Hello Athens 👋
010
Matan Borenkraout 🥬 @matanbobi.dev · 19/11/2024
@cassidoo.co what kind of sick game are you playing here? 😅
1191
Matan Borenkraout 🥬 @matanbobi.dev · 19/11/2024
After posting something on Reddit, I need a beer 😂
040
Matan Borenkraout 🥬 @matanbobi.dev · 19/11/2024
Hard is an understatement it feels 😅
010
Matan Borenkraout 🥬 @matanbobi.dev · 19/11/2024
Is it just me that's so scared of posting something I wrote on reddit? It's like people have no manners there.
200
Matan Borenkraout 🥬 @matanbobi.dev · 19/11/2024
Good luck Dominik! I'm sure you'll ace it.
110
Matan Borenkraout 🥬 @matanbobi.dev · 19/11/2024
So, How many occurrences of React.Dispatch<React.SetStateAction in your codebase? matanbobi.dev/posts/stop-p...
matanbobi.dev
React Anti-Pattern: Stop Passing Setters Down the Components Tree
Let's see why passing useState setters as props creates abstraction leaks and tightly couples child components to parent implementations.
074
Matan Borenkraout 🥬 @matanbobi.dev · 15/11/2024
I’m hesitating what should we do in RTL to support 19 too for now. I guess Sebastian has the solution in his head probably 😅
000
Matan Borenkraout 🥬 @matanbobi.dev · 15/11/2024
Weekend mode
Shiffi the poodle sleeping
040
Matan Borenkraout 🥬 @matanbobi.dev · 15/11/2024
IIUC, this is the npm semver tester and there rc versions aren’t answering the condition :/ semver.npmjs.com
semver.npmjs.com
npm semantic version calculator
Calculate the versions of a package that match a given semantic version range
110
Matan Borenkraout 🥬 @matanbobi.dev · 11/11/2024
On a Levi’s jeans?? This happens to me on some Zara jeans but Levi’s should be a premium brand
110
Matan Borenkraout 🥬 @matanbobi.dev · 11/11/2024
Building a talk in a week is a dream come true to me 😂
010
Matan Borenkraout 🥬 @matanbobi.dev · 11/11/2024
@ealush.bsky.social tell us your secrets please
000
Matan Borenkraout 🥬 @matanbobi.dev · 10/11/2024
This is by far one of the toughest things in open source once you have a library. Some days it feels like it can be a full time job which I just keep postponing :/ From issues, discussions, discord, stackoverflow questions and reddit. I admire the way you’re everywhere!
020
Matan Borenkraout 🥬 @matanbobi.dev · 10/11/2024
🫶
010
Matan Borenkraout 🥬 @matanbobi.dev · 10/11/2024
Zero shot "Chain of Thought" (CoT) like you've mentioned is good, so is "Thread of Thoughts" (ThoT) which is something like this: "Walk me through this in manageable parts step by step, summarizing and analyzing as we go." I found this read to be really good: arxiv.org/pdf/2406.06608
arxiv.org
040
Matan Borenkraout 🥬 @matanbobi.dev · 10/11/2024
Good luck Artem, you'll nail it!
110