Skip to content

Commit

Permalink
chore: add concurrently for running example tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mammadataei committed Oct 4, 2022
1 parent 0738fbe commit b00776c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ jobs:
install: false
build: pnpm build
start: pnpm example dev
command: pnpm test
command: pnpm example test:ci
8 changes: 5 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"version": "0.0.0",
"scripts": {
"dev": "vite",
"cypress": "cypress open",
"test": "cypress run",
"cypress": "concurrently --kill-others --names server,cypress \"pnpm dev\" \"cypress open\"",
"test": "concurrently --kill-others --names server,cypress \"pnpm dev\" \"cypress run\"",
"test:ci": "cypress run",
"build": "tsc && vite build",
"preview": "vite preview"
},
Expand All @@ -23,8 +24,9 @@
"@types/uuid": "^8.3.4",
"@vitejs/plugin-react": "^1.3.2",
"autoprefixer": "^10.4.12",
"concurrently": "^7.4.0",
"cypress": "^10.8.0",
"cypress-vite": "workspace:1.1.1",
"cypress-vite": "workspace:*",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8",
"typescript": "^4.8.3",
Expand Down
33 changes: 32 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b00776c

Please sign in to comment.