chore: transform `import.meta.env.SSR` to `false` within component code
The import.meta.env.SSR flag is used in component code where the component author needs to vary behavior depending on the execution environment. In production, import.meta.env.SSR will be either true (if the component is being server-rendered) or false (if the component is rendering in the browser).
We do not intend for Jest to be used to test SSR & component hydration. For that reason, import.meta.env.SSR should always evaluate to false in Jest tests. This PR makes that change.
We do not intend for Jest to be used to test SSR & component hydration.
@divmain Just saw that we were both adding solutions for the very same issue (PR #217) ;) I can only say that the assumption of your PR isn't really true. We already have repositories that are set up to both test SSR and CSR behavior via Jest. That's why we should make sure that this is taken into account.