Skip to content

Commit b52262d

Browse files
committed
fix(chore): add test:ci in package.json scripts
1 parent 3e80d1a commit b52262d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/cypress.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
cypress-run:
1111
concurrency:
12-
group: cypress-${{ github.head_ref || github.ref }}
12+
group: cypress-${{ github.head_ref || github.ref }}
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: checkout
@@ -38,7 +38,7 @@ jobs:
3838
install: false
3939
build: yarn build
4040
config: baseUrl=http://localhost:3000
41-
start: yarn start:ci
41+
start: yarn dev
4242
browser: chrome
4343
quiet: true
4444
# point to new cypress@10 config file

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"hooks:install": "husky install",
6363
"cypress:open": "env-cmd -f ./.env.test cypress open --browser chrome",
6464
"test": "yarn build:test && concurrently -k -s first \"yarn preview:test\" \"yarn cypress:run\"",
65+
"test:ci": "env-cmd -f ./.env.test cypress run --browser chrome --headless && nyc report --reporter=text --reporter=text-summary",
6566
"cypress:run": "env-cmd -f ./.env.test cypress run --browser chrome",
6667
"postinstall": "husky install",
6768
"cov:report": "open ./coverage/lcov-report/index.html",

0 commit comments

Comments
 (0)