Skip to content

Commit 5e13fc4

Browse files
committed
test: concurrent run for react and vue e2e tests
1 parent ad09335 commit 5e13fc4

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"description": "",
1111
"scripts": {
1212
"test": "concurrently 'cd packages/be && npm run test' 'cd packages/vue && npm run test -- --run' 'cd packages/react && npm run test -- --run' 'cd packages/svelte && npm run test -- --run'",
13-
"test:e2e": "concurrently 'cd packages/react && npm run cy' 'cd packages/vue && npm run cy'",
13+
"test:e2e": "concurrently -n E2E-REACT,E2E-VUE 'cd packages/react && npm run cy' 'cd packages/vue && npm run cy'",
1414
"format:write": "concurrently 'cd packages/be && npm run format:check' 'cd packages/vue && npm run format:check' 'cd packages/react && npm run format:check' 'cd packages/svelte && npm run format:check'",
1515
"lint:fix": "concurrently 'cd packages/be && npm run lint:check' 'cd packages/vue && npm run lint:check' 'cd packages/react && npm run lint:check' 'cd packages/svelte && npm run lint:check'",
1616
"prepare": "husky"

packages/react/cypress.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { defineConfig } from 'cypress';
33
export default defineConfig({
44
e2e: {
55
// This PORT must be in sync with the port defined in package.json
6-
baseUrl: 'http://localhost:8000'
6+
baseUrl: 'http://localhost:8001'
77
}
88
});

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"test:watch": "vitest --watch",
2121
"test:ui": "vitest --ui",
2222
"test:coverage": "vitest --coverage",
23-
"cy:ui": "concurrently -k -s first -n VITE,CYPRESS \"vite --port 8000\" \"cypress open\"",
24-
"cy": "concurrently -k -s first -n VITE,CYPRESS \"vite --port 8000\" \"cypress run\""
23+
"cy:ui": "concurrently -k -s first -n VITE,CYPRESS \"vite --port 8001\" \"cypress open\"",
24+
"cy": "concurrently -k -s first -n VITE,CYPRESS \"vite --port 8001\" \"cypress run\""
2525
},
2626
"dependencies": {
2727
"@fortawesome/react-fontawesome": "^0.2.2",

packages/vue/cypress.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { defineConfig } from 'cypress';
33
export default defineConfig({
44
e2e: {
55
// This PORT must be in sync with the port defined in package.json
6-
baseUrl: 'http://localhost:8000'
6+
baseUrl: 'http://localhost:8002'
77
}
88
});

packages/vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"test:ui": "vitest --ui",
2222
"test:coverage": "vitest --coverage",
2323
"postinstall": "cpy ../../node_modules/@vue/test-utils ./node_modules/@vue",
24-
"cy:ui": "concurrently -k -s first -n VITE,CYPRESS \"vite --port 8000\" \"cypress open\"",
25-
"cy": "concurrently -k -s first -n VITE,CYPRESS \"vite --port 8000\" \"cypress run\""
24+
"cy:ui": "concurrently -k -s first -n VITE,CYPRESS \"vite --port 8002\" \"cypress open\"",
25+
"cy": "concurrently -k -s first -n VITE,CYPRESS \"vite --port 8002\" \"cypress run\""
2626
},
2727
"dependencies": {
2828
"@fortawesome/vue-fontawesome": "^3.0.8",

0 commit comments

Comments
 (0)