๐ Rstest now supports per-file environment overrides via comments ๐ฆ
Need `jsdom` or `happy-dom` for a specific UI test?
Just add a simple docblock comment~
/**
* @rstest-environment jsdom
*/
Rstest was nominated for this year's Productivity Booster award at JSNation ๐
Here's the video shown on stage, made by @fi3ework27 with @Remotion (which is also powered by Rspack)
@bedesqui Rstest in-source tests are collected at runtime; top-level is not a requirement by design, but in practice it is the only reliably safe execution shape.
โDid you know you can write โin-source testsโ in JavaScript
Rstest supports in-source tests โ write your test right next to the code. Test code is stripped in production builds. Zero bundle cost. โก๏ธ
Rust-style DX, now in your JS toolchain ๐ฆ
#JavaScript#Rstest#Rspack
Rspack 2.0 has landed ๐ฆ
The growth since 1.0 is wild:
๐ 100K โ 5M weekly downloads
โก๏ธ ~100% faster builds
๐ devServer: 192 deps โ 1
And new stuff hits hard:
๐งฉ Pure ESM core, modern ESM library output
โ๏ธ Experimental RSC support
...
Lean, Fast, Modern Web Bundling ๐
๐ Rspress 2.0 just dropped!
โจ A brand-new, readability-first theme
๐ค AI-native: built-in `llms.txt` & SSG-MD generation
โก Instant dev startup with lazyCompilation and persistentCache
๐จ Shiki code highlighting with transformers
Read more๐ https://t.co/HDXSkFjxyU
Rstest 0.8.0 dropped.
browser mode: Playwright + real browsers + built-in UI. experimental for now, weโre still in the warm-up lap. ๐
https://t.co/qY7KvXQ5SJ
Rspack has tons of complex tests. We just migrated from Jest to Rstest and saw about a 30% speed boost. โก๏ธ
If youโve been thinking about trying Rstest, now might be a good time to give it a shot.
Super excited for the upcoming Rsbuild 1.5. We're enabling several Rspack experimental features by default:
โก Barrel file optimization โ faster builds
โจ Lazy compilation for dynamic imports โ faster dev startup
๐ฏ Inline const for TS enums โ smaller bundles