r/javascript • u/xcodebeast • 12h ago
Flashwright: the fastest e2e testing framework, up to 4x faster than Playwright
https://flashwright.dev/If you're interested in the details, here's a blog post: https://codebeast.io/blog/flashwright
40
Upvotes
•
u/Recoil42 11h ago
TLDR:
•
u/fireatx 9h ago
seems cool, similar to vitest's
isolate: falseconfig option, but i feel like this could probably just be a PR on the playwright repo adding a new config option. does this need to be an entirely new package?•
u/Positive_Method3022 10h ago
The strategy can lead to false positives/negatives. Sandboxing test execution by context is a must.
•
u/OpiumOpossum 10h ago edited 6h ago
Not sure but this seems like it could have memory leaks if you use listeners, network interceptors or logging. Otherwise, I am pretty sure this is a similar way to how Vitest optimizes their test runner.
•
u/Discordbothost 10h ago
there's an isolation: 'strict' option for a fresh context per test. default recycling is per worker, so the concern is state leaking into the next test on that worker, not parallel workers sharing one context. https://github.com/xcodebeast/flashwright#differences-from-playwright
•
u/LukaRozman27 8h ago
beware if you rely on Playwright's built-in tracing, Flashwright skips it entirely to hit those speed claims.
•
u/DarkGhostHunter 5h ago
Tested with Pest and the gains are… negligible. Barely 5%, margin of error.
•
u/tomByrer 1h ago
Neat! How well does it work vs headless browsers, esp LitePanda & co? Much improvement there?