diff --git a/apps/sim/app/_shell/public-env-script.test.tsx b/apps/sim/app/_shell/public-env-script.test.tsx
new file mode 100644
index 00000000000..6bef6d894c9
--- /dev/null
+++ b/apps/sim/app/_shell/public-env-script.test.tsx
@@ -0,0 +1,35 @@
+/**
+ * @vitest-environment node
+ */
+import { EnvScript } from 'next-runtime-env'
+import { describe, expect, it } from 'vitest'
+import { PublicEnvScript } from '@/app/_shell/public-env-script'
+
+/**
+ * Guards the loading strategy, not the markup. A plain ``
- * can't close this tag early and inject markup into every hosted page.
+ * `beforeInteractive` is load-bearing, not an optimization. A plain `