Editorial question67.2K views1,121 votes1 answer3,625 following
AI-generatedDoes Vitest support refreshing DNS cache during a test run?
When running long‑running Vitest suites, tests may need to connect to hostnames whose IP addresses change due to VPN reconfiguration, split‑horizon DNS, or dynamic service discovery. Vitest resolves the server.host option once at process start using Node’s built‑in dns.resolve* functions and relies on Node’s internal DNS cache, which is not exposed for flush