UNPKG

rwsdk

Version:

Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime

12 lines (11 loc) 272 B
import { beforeEach, afterEach } from "vitest"; const stubEnvVars = () => { let originals = {}; beforeEach(() => { originals = { ...process.env }; }); afterEach(() => { process.env = { ...originals }; }); }; export default stubEnvVars;