Skip to content

Commit

Permalink
another possible fix for flaky component tests (#1104)
Browse files Browse the repository at this point in the history
* another possible fix for flaky component tests

* turn autoimport back on
  • Loading branch information
dyc3 authored Oct 12, 2023
1 parent 9865338 commit 9520d8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion client/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 9520d8f

Please sign in to comment.