I don't think there is a reason to use the _ASSERT anymore since we switched to TypeScript. In the worst case the variables are undefined which should still be fine for us.
EDIT: Turns out tests can be a problem, but I guess it's a good idea to switch to vitest now anyway? 😅
When you directly use a global variable and it is undefined, it throws an exception. So the safe way to use them is to first check if they are defined, or do something like process.env.NAME.
I don't think there is a reason to use the
_ASSERT
anymore since we switched to TypeScript. In the worst case the variables areundefined
which should still be fine for us.EDIT: Turns out tests can be a problem, but I guess it's a good idea to switch to vitest now anyway? 😅