From 6cb89309ebf5909c11930c3eab85db6e23eef496 Mon Sep 17 00:00:00 2001 From: minnakt <47064971+minnakt@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:32:26 -0500 Subject: [PATCH] DEVPROD-934: Allow Cypress to test against dev server on Node 17+ (#2136) --- vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index bf7dd1d773..ff44fc9171 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,8 +9,12 @@ import envCompatible from "vite-plugin-env-compatible"; import checker from "vite-plugin-checker"; import { visualizer } from "rollup-plugin-visualizer"; import tsconfigPaths from "vite-tsconfig-paths"; +import dns from "dns"; import injectVariablesInHTML from "./config/injectVariablesInHTML"; +// Remove when https://github.com/cypress-io/cypress/issues/25397 is resolved. +dns.setDefaultResultOrder("ipv4first"); + // Do not apply Antd's global styles fs.writeFileSync(require.resolve("antd/es/style/core/global.less"), ""); fs.writeFileSync(require.resolve("antd/lib/style/core/global.less"), "");