From d2ec82b7a8a1bf86097a0625028179b13cfab19d Mon Sep 17 00:00:00 2001 From: Jipson Minibhavan Date: Tue, 27 Feb 2024 16:37:15 +0100 Subject: [PATCH] fix bug --- frontend/cypress.config.ts | 9 ++++++++- frontend/package.json | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/frontend/cypress.config.ts b/frontend/cypress.config.ts index e80e0e1..c8fac12 100644 --- a/frontend/cypress.config.ts +++ b/frontend/cypress.config.ts @@ -3,6 +3,13 @@ import { defineConfig } from 'cypress' export default defineConfig({ e2e: { specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}', - baseUrl: process.env.CYPRESS_BASE_URL + baseUrl: 'http://localhost:4173' + }, + component: { + specPattern: 'src/**/__tests__/*.{cy,spec}.{js,ts,jsx,tsx}', + devServer: { + framework: 'vue', + bundler: 'vite' + } } }) diff --git a/frontend/package.json b/frontend/package.json index acd60cc..9203c34 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -7,15 +7,15 @@ "cypress:open": "cypress open", "cypress:run": "cypress run --e2e", "test:unit": "vitest", - "test:e2e": "start-server-and-test preview 'cypress run --e2e'", + "test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "build-only": "vite build", "build-storybook": "storybook build", "dev": "vite ", "format": "prettier --write src/", - "preview": "vite preview --host ", + "preview": "vite preview", "storybook": "storybook dev -p 6006", - "test:e2e:dev": "start-server-and-test 'vite dev --host' $VITE_DEV_SERVER_URL 'cypress open --e2e'", + "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'", "type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false" }, "dependencies": {