Skip to content

Commit

Permalink
ci: cypress runs on 'npm run preview' now and on port 5050
Browse files Browse the repository at this point in the history
  • Loading branch information
noisy committed Mar 12, 2023
1 parent eb07c62 commit 49ef729
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
uses: cypress-io/[email protected]
with:
build: npm run build
start: npm run dev
wait-on: "http://localhost:3000"
start: npm run preview
wait-on: "http://localhost:5050"
wait-on-timeout: 120
record: true
env:
Expand Down
4 changes: 2 additions & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { defineConfig } from "cypress";

export default defineConfig({
projectId: 'ubrejg',
projectId: "ubrejg",
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require("./cypress/plugins/index.ts").default(on, config);
},
baseUrl: "http://localhost:3000",
baseUrl: "http://localhost:5050",
},
});

0 comments on commit 49ef729

Please sign in to comment.