Post

๐Ÿ’ก Use "using" for Vitest/Jest mocks/spys It's really nice to simplify You don't need manual mockReset / global afterEach cleanups anymore

Rob Palmer@robpalmer.bsky.social

ECMAScript excitement ๐Ÿ˜‰ Congrats to @chronicles.org on meeting the conditions for Explicit Resource Management to be Stage 4 at @tc39.es today ๐ŸŽ‰ It introduces `using` declarations and the Symbol.dispose protocol to deterministically and ergonomically release resources ๐Ÿ‘ github.com/tc39/proposa...

I've done that PR to add the Disposable implementation to jest - cool to see that people are starting to use it ๐Ÿ˜Š

0 reposts1 like