diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a7d1018..dddc891 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -16,6 +16,8 @@ jobs: - run: npm test cypress-run: runs-on: ubuntu-latest + env: + PORT: 3000 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/npm-test.yml b/.github/workflows/npm-test.yml index 439a7e6..a73c260 100644 --- a/.github/workflows/npm-test.yml +++ b/.github/workflows/npm-test.yml @@ -22,6 +22,8 @@ jobs: - run: npm test cypress-run: runs-on: ubuntu-latest + env: + PORT: 3000 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/cypress.config.ts b/cypress.config.ts index e923fa8..2282812 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -5,7 +5,7 @@ export default defineConfig({ /*setupNodeEvents(on, config) { // implement node event listeners here },*/ - baseUrl: 'http://localhost', + baseUrl: 'http://localhost:3000', specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}', experimentalRunAllSpecs: true, },