techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.7K
active users

#JSDom

0 posts0 participants0 posts today
Dylan </closingtags.com><p>Ignoring JSDOM Errors in&nbsp;Vitest</p><p>When ignoring a problem becomes such a problem itself that you can no longer ignore it <a href="https://mastodon.social/tags/tdd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tdd</span></a> <a href="https://mastodon.social/tags/jsdom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsdom</span></a> <a href="https://mastodon.social/tags/vitest" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vitest</span></a></p><p><a href="https://www.closingtags.com/ignoring-jsdom-errors-in-vitest/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">closingtags.com/ignoring-jsdom</span><span class="invisible">-errors-in-vitest/</span></a></p>
Daniel Rotter<p>👨‍💻 I'm building an app with as little <a href="https://mastodon.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> as possible (only sending and receiving push notifications). I don't use any framework, and everything else is handled by the server. </p><p>❓ Now I'm wondering how to handle <a href="https://mastodon.social/tags/testing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>testing</span></a>. Does it make sense to do <a href="https://mastodon.social/tags/UnitTesting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UnitTesting</span></a> for a few lines of JavaScript? How do you handle that? Do you only do <a href="https://mastodon.social/tags/E2ETesting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>E2ETesting</span></a> in such cases?</p><p>💭 I was already thinking about using <a href="https://mastodon.social/tags/JSDom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JSDom</span></a> in <a href="https://mastodon.social/tags/Jest" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Jest</span></a>, but the <a href="https://mastodon.social/tags/HTML" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTML</span></a> is generated by <a href="https://mastodon.social/tags/Symfony" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Symfony</span></a>, making it hard to get it in there…</p>
Jesse Jurman<p><span class="h-card"><a href="https://techhub.social/@develwithoutacause" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>develwithoutacause</span></a></span> <span class="h-card"><a href="https://hachyderm.io/@eliajf" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>eliajf</span></a></span> <a href="https://fosstodon.org/tags/Jest" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Jest</span></a> is definitely the industry standard, and has a lot of backing behind it - great interactive CLI and works great with tools like <a href="https://fosstodon.org/tags/testing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>testing</span></a>-library and <a href="https://fosstodon.org/tags/jsdom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsdom</span></a> - would definitely recommend checking that option out!</p>
Matthias Endler<p>Has anyone built a "headless browser" that can be bundled with a CLI tool?</p><p>I'm thinking jsdom (but probably built with Rust + WASM). Something that can render websites and execute JavaScript, but is super small doesn't ship any window chrome or keyboard input support etc?</p><p>Asking because someone managed to compile SpiderMonkey to Webassembly. <a href="https://github.com/bytecodealliance/spidermonkey-wasm-build" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/bytecodealliance/sp</span><span class="invisible">idermonkey-wasm-build</span></a> 😍</p><p><a href="https://mastodon.social/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mastodon.social/tags/wasm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wasm</span></a> <a href="https://mastodon.social/tags/jsdom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jsdom</span></a></p>