Toot

Written by Adam Chalmers on 2025-01-17 at 21:17

If you're using vitest (JS) and you run tests in a describe directly, don't. They're not guaranteed to run before any setup you have in e.g. a beforeAll call. Instead, run your tests inside it.

This was causing a bunch of tests to pass when I ran my whole test suite (because some earlier test called its beforeAll), but fail when I focused on just one test (because beforeAll never ran)

=> More informations about this toot | View the thread | More toots from adam_chal@hachyderm.io

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113845772418708390
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
218.972665 milliseconds
Gemini-to-HTML Time
0.33961 milliseconds

This content has been proxied by September (3851b).