Skip to content

Commit

Permalink
Making sure we have slightly diff configs for local and GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
megoth-capgemini committed Nov 27, 2023
1 parent 7f201c5 commit 52bf263
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import customViteConfig from "./vite.config";

export default defineConfig({
e2e: {
baseUrl: "http://localhost:5173"
baseUrl: "http://localhost:3000"
},
component: {
devServer: {
Expand Down
15 changes: 15 additions & 0 deletions cypress.localConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {defineConfig} from "cypress";
import customViteConfig from "./vite.config";

export default defineConfig({
e2e: {
baseUrl: "http://localhost:5173"
},
component: {
devServer: {
framework: "react",
bundler: "vite",
viteConfig: customViteConfig
},
},
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"build": "vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"cypress:open": "cypress open",
"test:e2e": "cypress run",
"cypress:open": "cypress open --config-file cypress.localConfig.ts",
"test:e2e": "cypress run --config-file cypress.localConfig.ts",
"test:component": "cypress run --component"
},
"dependencies": {
Expand Down

0 comments on commit 52bf263

Please sign in to comment.