modified: .forgejo/workflows/test.yml
Some checks failed
Testing / test (push) Has been cancelled

modified:   package.json
This commit is contained in:
Mrrp 2024-11-18 20:42:11 -08:00
parent 484c958f8c
commit ab50b172f6
2 changed files with 6 additions and 6 deletions

View file

@ -24,8 +24,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Run Cypress (e2e testing) - name: Run Unit tests
uses: cypress-io/github-action@v6 run: npm run test:unit
with:
build: npm run build - name: Run E2E tests
start: npm start run: npm run test:e2e

View file

@ -7,7 +7,7 @@
"dev": "vite", "dev": "vite",
"build": "run-p type-check \"build-only {@}\" --", "build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview", "preview": "vite preview",
"test:unit": "vitest", "test:unit": "npm run test:unit || (if grep -q 'No tests found' ./test-output.log; then exit 0; else exit 1; fi)",
"test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'", "test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'",
"test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'", "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'",
"build-only": "vite build", "build-only": "vite build",