From a1a4464ddc739650aa385a60bf6183ab025ea11f Mon Sep 17 00:00:00 2001 From: Anthony Rey Date: Fri, 9 Aug 2024 19:07:31 +0200 Subject: [PATCH] Run React instead of Vue component tests --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9247727..0e9adcf 100644 --- a/package.json +++ b/package.json @@ -7,18 +7,18 @@ "react:dev": "vite --config vite-react.config.ts", "react:build": "tsc && vite --config vite-react.config.ts build", "react:component:serve": "NODE_ENV=production vite --config vite-react.config.ts", + "react:test:component": "start-server-and-test react:component:serve http://localhost:3030 test:component:open", + "react:test:component:ci": "start-server-and-test react:component:serve http://localhost:3030 test:component:run", "vue:dev": "vite --config vite-vue.config.ts", "vue:build": "vue-tsc && vite --config vite-vue.config.ts build", "vue:component:serve": "vite --config vite-vue.config.ts", + "vue:test:component": "start-server-and-test vue:component:serve http://localhost:3030 test:component:open", + "vue:test:component:ci": "start-server-and-test vue:component:serve http://localhost:3030 test:component:run", "preview": "vite preview", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0 --ignore-path .gitignore", "lint:fix": "npm run lint -- --fix", "test": "vitest", "test:ci": "vitest run --coverage", - "react:test:component": "start-server-and-test react:component:serve http://localhost:3030 test:component:open", - "react:test:component:ci": "start-server-and-test vue:component:serve http://localhost:3030 test:component:run", - "vue:test:component": "start-server-and-test vue:component:serve http://localhost:3030 test:component:open", - "vue:test:component:ci": "start-server-and-test vue:component:serve http://localhost:3030 test:component:run", "test:component:open": "cypress open --config-file test/component/cypress.config.ts", "test:component:run": "cypress run --config-file test/component/cypress.config.ts" },