From 9520d8f5a1d4ef3994e69c1f9fea0ca2f355cdf6 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Thu, 12 Oct 2023 13:02:09 -0400 Subject: [PATCH] another possible fix for flaky component tests (#1104) * another possible fix for flaky component tests * turn autoimport back on --- client/vite.config.js | 10 +++++++++- cypress.config.ts | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/vite.config.js b/client/vite.config.js index 5b7f65d96..3a3b3df0e 100644 --- a/client/vite.config.js +++ b/client/vite.config.js @@ -36,7 +36,15 @@ export default defineConfig({ envPrefix: ["VITE_", "VUE_APP_", "OTT_"], optimizeDeps: { // this attempts to mitigate https://github.com/cypress-io/cypress/issues/25913 - entries: ["tests/e2e/**/*.ts", "**/*.{js,ts,vue}"], + entries: [ + "tests/e2e/**/*.ts", + "client/tests/e2e/**/*.ts", + "tests/e2e/support/component.ts", + "client/tests/e2e/support/component.ts", + "**/*.{js,ts,vue}", + "vuetify/lib/components/**/*", + ], + include: ["vuetify"], }, test: { environment: "jsdom", diff --git a/cypress.config.ts b/cypress.config.ts index cc1bb5246..bbab204e1 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,5 +1,5 @@ import { defineConfig } from "cypress"; -import viteConfig from "ott-client/vite.config"; +import viteConfig from "./client/vite.config"; export default defineConfig({ projectId: "3utpz8",