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
text/gemini
This content has been proxied by September (3851b).